Skip to content

Commit

Permalink
fix请求token失败
Browse files Browse the repository at this point in the history
  • Loading branch information
liufufa committed Mar 24, 2023
1 parent 3ef47b3 commit daffe52
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,10 @@ def sendMessageToBot(msg: str, toUserName: str, botName: str):
'content':msg
}
}
resp = requests.post(
requests.post(
url='https://api.weixin.qq.com/cgi-bin/message/custom/send?access_token=' + access_token,
data=bytes(json.dumps(body, ensure_ascii=False).encode('utf-8'))
data=bytes(json.dumps(body, ensure_ascii=False).encode('utf-8')),
verify=False
)

def findOpenid(botName: str, fromName: str):
Expand Down

0 comments on commit daffe52

Please sign in to comment.