diff --git a/.idea/iOSAI.iml b/.idea/iOSAI.iml
index df5cbff..f571432 100644
--- a/.idea/iOSAI.iml
+++ b/.idea/iOSAI.iml
@@ -2,7 +2,7 @@
-
+
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
index c27b771..db8786c 100644
--- a/.idea/misc.xml
+++ b/.idea/misc.xml
@@ -3,5 +3,5 @@
-
+
\ No newline at end of file
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 8481fb9..3de4e5b 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -170,8 +170,7 @@
-
-
+
diff --git a/Module/FlaskService.py b/Module/FlaskService.py
index bd1c41c..942e7ba 100644
--- a/Module/FlaskService.py
+++ b/Module/FlaskService.py
@@ -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)
diff --git a/Utils/LogManager.py b/Utils/LogManager.py
index a39050c..67e8a24 100644
--- a/Utils/LogManager.py
+++ b/Utils/LogManager.py
@@ -240,7 +240,7 @@ def _force_utf8_everywhere():
except Exception:
pass
-_force_utf8_everywhere()
+# _force_utf8_everywhere()
# ========= 全局:强制 UTF-8 + 关闭缓冲(运行期立刻生效) =========