debug: openid

This commit is contained in:
hackrobot
2024-03-25 11:06:51 +08:00
parent 080f136698
commit dd001aa0e1
2 changed files with 1 additions and 1 deletions

Binary file not shown.

View File

@@ -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)