python学习

This commit is contained in:
2019-08-07 10:19:26 +08:00
parent 2b7e1e1fc8
commit 630e16a759
6 changed files with 260 additions and 240 deletions

View File

@@ -21,6 +21,7 @@ class MemberService():
.format(app.config['MINA_APP']['appid'], app.config['MINA_APP']['appkey'], code)
r = requests.get(url)
res = json.loads(r.text)
app.logger.info(res)
openid = None
if 'openid' in res:
openid = res['openid']