Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【优化建议】对于appid,appsecret输出,白名单列表的处理 #1

Open
Valuebai opened this issue Apr 16, 2019 · 1 comment

Comments

@Valuebai
Copy link

在get_access_token函数中,建议对获取到的token进行处理,data = json.loads(r.text),经常会出现如下的情况
if(data['errcode']==40013):
print("填入的appid有误", data['errmsg'])
if(data['errcode']==40125):
print("填入的appsecret有误", data['errmsg'])
if (data['errcode'] == 40164):
print("你的IP不在白名单中", data['errmsg'])

@varlemon
Copy link
Owner

varlemon commented Apr 23, 2019

已经添加了打印错误日志的相关功能,感谢您的建议!^_^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants