Skip to content
This repository has been archived by the owner on May 14, 2020. It is now read-only.

Update __init__.py openid赋值错误 #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jamiesun
Copy link

if trade_type == 'JSAPI' and openid is None:
这一行逻辑有误,如果 trade_type 是 NATIVE openid是None,post_dict['openid'] = openid 这个赋值语句被执行,结果openid传过去的是一个‘None’,微信服务器返回错误 “无效的openid”

 if trade_type == 'JSAPI' and openid is None:
这一行逻辑有误,如果 trade_type 是 NATIVE openid是None,post_dict['openid'] = openid 这个赋值语句被执行,结果openid传过去的是一个‘None’,微信服务器返回错误 “无效的openid”
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant