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"},