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

Update __init__.py openid赋值错误#5

Open
jamiesun wants to merge 1 commit intoSIvaCoHan:masterfrom
jamiesun:patch-1
Open

Update __init__.py openid赋值错误#5
jamiesun wants to merge 1 commit intoSIvaCoHan:masterfrom
jamiesun:patch-1

Conversation

@jamiesun
Copy link
Copy Markdown

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