From 76d452ccd2d3d7df5d628f8448af20db2d704e67 Mon Sep 17 00:00:00 2001 From: NANSIYV <39900381+nsv2051@users.noreply.github.com> Date: Fri, 25 Aug 2023 09:46:50 +0800 Subject: [PATCH] Update notify.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复企业微信推送错误 --- sample/notify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sample/notify.py b/sample/notify.py index d7f07c47..27d817bd 100644 --- a/sample/notify.py +++ b/sample/notify.py @@ -456,7 +456,7 @@ class WeCom: return respone["errmsg"] def send_mpnews(self, title, message, media_id, touser="@all"): - send_url = f"https://{self.ORIGIN}/cgi-bin/message/send?access_token={self.get_access_token()}" + send_url = f"{self.ORIGIN}/cgi-bin/message/send?access_token={self.get_access_token()}" send_values = { "touser": touser, "msgtype": "mpnews",