debug: openid
This commit is contained in:
Binary file not shown.
2
main.py
2
main.py
@@ -64,7 +64,7 @@ def read_users(code, wxid, db: Session = Depends(get_db)):
|
||||
r = res.json()
|
||||
# 返回参数 session_key/unionid/errmsg/openid/errcode
|
||||
print('r----', r)
|
||||
openId = r['openid']
|
||||
openId = r['openId']
|
||||
print('openId----', openId)
|
||||
db_user = crud.get_user_by_openId(db, openId=openId)
|
||||
print('db_user----', db_user)
|
||||
|
||||
Reference in New Issue
Block a user