update
This commit is contained in:
12
main.py
12
main.py
@@ -131,11 +131,13 @@ def h5group(nickname, db: Session = Depends(get_db)):
|
||||
for friendItem in allFriend['data']["contactList"]:
|
||||
if friendItem['nickname'] == nickname:
|
||||
new_wxid = friendItem['wxid']
|
||||
|
||||
WXBotService.add_group_members_40_more(
|
||||
robot_wxid=config.account_wxid,
|
||||
from_wxid=config.chatroomId, #异度星球群
|
||||
new_wxid=new_wxid)
|
||||
else:
|
||||
print('通过nickname查不到wxid')
|
||||
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": "群聊邀请已发送"}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user