Skip to content

Commit

Permalink
修复无法发送Media消息BUG
Browse files Browse the repository at this point in the history
未将response转为dic,导致无法收到MediaId,无法执行后面逻辑。
  • Loading branch information
yaphone authored May 7, 2017
1 parent 760fa95 commit 81e6148
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions wxbot_project_py2.7/wechat/wechat_apis.py
Original file line number Diff line number Diff line change
Expand Up @@ -585,6 +585,7 @@ def webwxuploadmedia(self, file_path):
}

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
Expand Down

0 comments on commit 81e6148

Please sign in to comment.