update
This commit is contained in:
2
crud.py
2
crud.py
@@ -73,5 +73,7 @@ def update_user_field(db: Session, user_id: str, openId=None, h5openid=None):
|
||||
# 提交更改
|
||||
db.commit()
|
||||
db.refresh(user)
|
||||
print('用户数据更新')
|
||||
return user
|
||||
print('用户数据查询失败')
|
||||
return False
|
||||
|
||||
4
utils.py
4
utils.py
@@ -26,6 +26,10 @@ from pydantic import BaseModel
|
||||
|
||||
# 保存好友信息
|
||||
def saveWxidInfo(account_wxid, wxid,openId=None,h5openid=None):
|
||||
print('wxid',wxid)
|
||||
print('openId',openId)
|
||||
print('h5openid',h5openid)
|
||||
|
||||
allFriend = WXBotService.get_address_list(account_wxid)
|
||||
for friendItem in allFriend['data']["contactList"]:
|
||||
if friendItem['wxid'] == wxid:
|
||||
|
||||
Reference in New Issue
Block a user