ShuanghongS 4 miesięcy temu
rodzic
commit
11f829f868
1 zmienionych plików z 2 dodań i 8 usunięć
  1. 2 8
      service/robot.class.php

+ 2 - 8
service/robot.class.php

@@ -848,14 +848,7 @@ class robot{
     响应规则,请按以下步骤处理:  
     <{response_rule_configuration}>  
     <{number}>.请严格按照以下<{output_type}>格式返回,不要包含任何其他文字或说明: 
-    {
-        \"can_query\": true,
-        \"query_type\": \"货物跟踪\",
-        \"reason\": \"分析原因\",
-        \"sql\": \"生成的SQL語句\",
-        \"reference\": \"Markdown格式的回复模板\",
-        \"response\": \"直接回答內容或空字符串\"
-    }
+    {\"can_query\": true,\"query_type\": \"货物跟踪\",\"reason\": \"分析原因\",\"sql\": \"生成的SQL語句\",\"reference\": \"Markdown格式的回复模板\",\"response\": \"直接回答內容或空字符串\"}
 
     字段說明:
     <{output_format_configuration}>
@@ -922,6 +915,7 @@ class robot{
          * JSON_ERROR_INF_OR_NAN	7	不能编码 INF 或 NAN
          * JSON_ERROR_UNSUPPORTED_TYPE	8	不支持的数据类型
         */
+        error_log("Real_message:".common::getChatAimessage($response['message']));
         $message = json_decode(common::getChatAimessage($response['message']),true);
         if ($message === null) {
             // 获取最后一次 JSON 操作的错误码