From 81e61484e083db65cd425d0959da6382ec698e72 Mon Sep 17 00:00:00 2001 From: yaphone Date: Sun, 7 May 2017 13:19:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=97=A0=E6=B3=95=E5=8F=91?= =?UTF-8?q?=E9=80=81Media=E6=B6=88=E6=81=AFBUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 未将response转为dic,导致无法收到MediaId,无法执行后面逻辑。 --- wxbot_project_py2.7/wechat/wechat_apis.py | 1 + 1 file changed, 1 insertion(+) diff --git a/wxbot_project_py2.7/wechat/wechat_apis.py b/wxbot_project_py2.7/wechat/wechat_apis.py index 6f02c42..84b84e7 100644 --- a/wxbot_project_py2.7/wechat/wechat_apis.py +++ b/wxbot_project_py2.7/wechat/wechat_apis.py @@ -585,6 +585,7 @@ class WXAPI(object): } r = requests.post(url, data=multipart_encoder, headers=headers) + dic = json.loads(r.text) #修复无法发送Media消息BUG if dic['BaseResponse']['Ret'] == 0: return dic return None