qwdwq
This commit is contained in:
12
main.py
12
main.py
@@ -296,9 +296,6 @@ def h5group(nickname, db: Session = Depends(get_db)):
|
||||
for groupItem in groupList['data']:
|
||||
if groupItem['nickname'] == matchesString:
|
||||
inGroup = True
|
||||
else:
|
||||
print("Error: 'data' is None.")
|
||||
|
||||
if inGroup:
|
||||
return {"code": 200, "success": "fail", "message": "已经在群聊中"}
|
||||
else:
|
||||
@@ -329,7 +326,14 @@ def h5group(nickname, db: Session = Depends(get_db)):
|
||||
# msg=f'已收到-[在看]支持,谢谢,请从小程序,点击"立即加入"\n[本消息是机器人自动回复]')
|
||||
return {"code": 200, "success": "ok", "message": "群聊邀请已发送"}
|
||||
else:
|
||||
return {"code": 200, "success": "ok", "message": "查不到nickname"}
|
||||
return {
|
||||
"code": 200,
|
||||
"success": "ok",
|
||||
"message": "查不到nickname"
|
||||
}
|
||||
else:
|
||||
print("Error: 'data' is None.")
|
||||
|
||||
else:
|
||||
print("未找到匹配项,或者有特殊字符")
|
||||
return {"code": 200, "success": "ok", "message": "未找到匹配项,或者有特殊字符"}
|
||||
|
||||
Reference in New Issue
Block a user