update
This commit is contained in:
9
main.py
9
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"}
|
||||
|
||||
|
||||
# 创建用户
|
||||
|
||||
Reference in New Issue
Block a user