From 0434f76377630f22559d33c8100a91d46b6fe591 Mon Sep 17 00:00:00 2001 From: hackrobot Date: Wed, 10 Apr 2024 20:06:40 +0800 Subject: [PATCH] update --- main.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index 344f83c..6270eef 100644 --- a/main.py +++ b/main.py @@ -132,14 +132,17 @@ def h5group(nickname, db: Session = Depends(get_db)): if friendItem['nickname'] == nickname: new_wxid = friendItem['wxid'] else: - print('通过nickname查不到wxid') + # print('通过nickname查不到wxid') + pass if new_wxid: WXBotService.add_group_members_40_more( robot_wxid=config.account_wxid, from_wxid=config.chatroomId, #异度星球群 new_wxid=new_wxid) - print('new_wxid--', new_wxid) - return {"code": 200, "success": "ok", "message": "群聊邀请已发送"} + print('new_wxid--', new_wxid) + return {"code": 200, "success": "ok", "message": "群聊邀请已发送"} + else: + return {"code": 200, "success": "ok", "message": "查不到nickname"} # 创建用户