From ecdf88fb794944d36626e27fd967d6e40260395a Mon Sep 17 00:00:00 2001 From: mattuy Date: Sat, 7 Aug 2021 17:59:06 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20fix:=20=E8=87=AA=E5=B7=B1=E5=8F=91?= =?UTF-8?q?=E7=9A=84=E6=B6=88=E6=81=AF=E4=B8=8D=E6=8F=90=E9=86=92?= 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 dc40fd6..a6386dd 100644 --- a/wxbot.py +++ b/wxbot.py @@ -239,7 +239,7 @@ class WXBot(WebWeixin): # 工作时间发送新消息提醒到飞书 curr_time_struct = time.localtime(time.time()) - if 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"},