This commit is contained in:
2025-09-11 19:02:00 +08:00
parent a408a01110
commit 9775b1a063
5 changed files with 23 additions and 6 deletions

View File

@@ -357,7 +357,6 @@ def queryAnchorList():
data = []
return ResultData(data=data).toJson()
# 删除主播
@app.route("/deleteAnchorWithIds", methods=['POST'])
def deleteAnchorWithIds():
@@ -366,6 +365,25 @@ def deleteAnchorWithIds():
deleted = AiUtils.delete_anchors_by_ids(ids)
return ResultData(data={"deleted": deleted}).toJson()
@app.route("/aiConfig", methods=['POST'])
def aiConfig():
data = request.get_json()
agentName = data.get("agentName")
guildName = data.get("guildName")
contactTool = data.get("contactTool")
contact = data.get("contact")
dict = {
"agentName": agentName,
"guildName": guildName,
"contactTool": contactTool,
"contact": contact
}
jsonData = json.dumps(dict)
print(jsonData)
return ResultData(data="").toJson()
if __name__ == '__main__':
app.run("0.0.0.0", port=5000, debug=True, use_reloader=False)