From 898a1dd67236308a39484386d518565a1ba044a0 Mon Sep 17 00:00:00 2001 From: hackrobot Date: Thu, 11 Apr 2024 00:16:43 +0800 Subject: [PATCH] update --- crud.py | 2 ++ utils.py | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/crud.py b/crud.py index f1a2dac..7c86974 100644 --- a/crud.py +++ b/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 diff --git a/utils.py b/utils.py index 71ace3b..28911a3 100644 --- a/utils.py +++ b/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: