From 9a7460ee9131c026f3a9bbe4ee4cc89b5a20918a Mon Sep 17 00:00:00 2001 From: mattuy Date: Sat, 7 Aug 2021 18:01:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=AD=A3=E8=AF=AD=E6=B3=95?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wxbot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wxbot.py b/wxbot.py index a6386dd..762de07 100644 --- a/wxbot.py +++ b/wxbot.py @@ -239,7 +239,7 @@ class WXBot(WebWeixin): # 工作时间发送新消息提醒到飞书 curr_time_struct = time.localtime(time.time()) - if params['from_name'] <> '_self' and curr_time_struct.tm_hour >= 10 and curr_time_struct.tm_hour < 19: + if params['from_name'] != '_self' and curr_time_struct.tm_hour >= 10 and curr_time_struct.tm_hour < 19: requests.post( "https://open.feishu.cn/open-apis/bot/v2/hook/30bda541-46de-40b7-8881-31b77deadc35", headers={"Content-Type": "application/json"},