We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b2a56d commit d9a2140Copy full SHA for d9a2140
ju_dan/main.py
@@ -21,7 +21,7 @@ def handle_content(msg):
21
# 内容最多1024个字符
22
content = custom_str(content, 1024)
23
time_stamp = msg['CreateTime']
24
- create_time = time.strftime("%Y--%m--%d %H:%M:%S", time.localtime(time_stamp))
+ create_time = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(time_stamp))
25
current_talk_group_id = msg['User']['UserName']
26
# 内容最多64个字符
27
current_talk_group_name = custom_str(msg['User']['NickName'], 64)
@@ -54,8 +54,6 @@ def custom_str(source, length):
54
55
56
def build_logs():
57
- # 获取当前时间
58
- now_time = time.strftime("%Y_%m_%d_%H_%M_%S", time.localtime())
59
# 设置log名称
60
log_name = "wx.log"
61
# 定义logger
0 commit comments