浏览代码

选址添加返回结构

gushoubang 7 月之前
父节点
当前提交
cc5de234ed
共有 3 个文件被更改,包括 3 次插入0 次删除
  1. 二进制
      app/__pycache__/__init__.cpython-310.pyc
  2. 二进制
      app/services/__pycache__/chat_service.cpython-310.pyc
  3. 3 0
      app/services/chat_service.py

二进制
app/__pycache__/__init__.cpython-310.pyc


二进制
app/services/__pycache__/chat_service.cpython-310.pyc


+ 3 - 0
app/services/chat_service.py

@@ -121,6 +121,7 @@ def create_chat(msg,type):
         else:
         else:
             json_res = "未找到相关数据"
             json_res = "未找到相关数据"
             json_res = res_error(json_res, "selectLand")
             json_res = res_error(json_res, "selectLand")
+        return json_res
     elif type == 'answer':
     elif type == 'answer':
         # json_res = route_query(msg)
         # json_res = route_query(msg)
         # json_res = jsonResToDict_questions(json_res)
         # json_res = jsonResToDict_questions(json_res)
@@ -129,6 +130,8 @@ def create_chat(msg,type):
         json_res = update_chat_history_simple(msg)
         json_res = update_chat_history_simple(msg)
         json_res = res_success(json_res, "answer")
         json_res = res_success(json_res, "answer")
         print(json_res)  # 打印生成的回复
         print(json_res)  # 打印生成的回复
+        return json_res
+    
 
 
 # 智能选址
 # 智能选址