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"]:
|
for friendItem in allFriend['data']["contactList"]:
|
||||||
if friendItem['nickname'] == nickname:
|
if friendItem['nickname'] == nickname:
|
||||||
new_wxid = friendItem['wxid']
|
new_wxid = friendItem['wxid']
|
||||||
|
else:
|
||||||
WXBotService.add_group_members_40_more(
|
print('通过nickname查不到wxid')
|
||||||
robot_wxid=config.account_wxid,
|
if new_wxid:
|
||||||
from_wxid=config.chatroomId, #异度星球群
|
WXBotService.add_group_members_40_more(
|
||||||
new_wxid=new_wxid)
|
robot_wxid=config.account_wxid,
|
||||||
|
from_wxid=config.chatroomId, #异度星球群
|
||||||
|
new_wxid=new_wxid)
|
||||||
print('new_wxid--', new_wxid)
|
print('new_wxid--', new_wxid)
|
||||||
return {"code": 200, "success": "ok", "message": "群聊邀请已发送"}
|
return {"code": 200, "success": "ok", "message": "群聊邀请已发送"}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user