temp
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user