api 增加参数

This commit is contained in:
xaoyaoo 2024-01-05 20:40:26 +08:00
parent 666ea5f87c
commit 6d502dbc04

View File

@ -69,7 +69,8 @@ def chat_count():
msg_path = request.headers.get("msg_path")
if not msg_path:
msg_path = g.msg_path
contact_list = analyzer.get_chat_count(msg_path)
username = request.json.get("username", "")
contact_list = analyzer.get_chat_count(msg_path, username)
return ReJson(0, contact_list)
except Exception as e:
return ReJson(9999, msg=str(e))