This commit is contained in:
hackrobot
2024-04-10 20:06:40 +08:00
parent 0e6a1d2d7c
commit 0434f76377

View File

@@ -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"}
# 创建用户