ShuanghongS 5 mesiacov pred
rodič
commit
9e06c5f711
2 zmenil súbory, kde vykonal 12 pridanie a 4 odobranie
  1. 3 3
      main_new_version.php
  2. 9 1
      service/robot.class.php

+ 3 - 3
main_new_version.php

@@ -104,13 +104,13 @@ switch ($action) {
             $systemManagement = array("index"=>"$index","label"=>"System Management","icon"=>"icon_system__management_fill_b","type"=>"list"); 
             $children  = array(); 
             $children[] = array("index" =>$index.'-1',"label" =>"System Message","path"=>"/system-message");
-            $children[] = array("index" =>$index.'-2',"label" =>"System Settings","path"=>"/SystemSettings"); 
-            $children[] = array("index" =>$index.'-3',"label" =>"Chat Log","path"=>"/chat-log");
-            $children[] = array("index" =>$index.'-4',"label" =>"AI API Log","path"=>"/ai-api-log");  
+            $children[] = array("index" =>$index.'-2',"label" =>"System Settings","path"=>"/SystemSettings");   
             //只有chud的账户可以看日志记录
             if(strtolower(_getLoginName()) == "chud" 
                 || strtolower(_getLoginName()) == strtolower("IT.Andywu") 
                 || strtolower(_getLoginName()) == "ra.admin"){
+                    $children[] = array("index" =>$index.'-3',"label" =>"Chat Log","path"=>"/chat-log");
+                    $children[] = array("index" =>$index.'-4',"label" =>"AI API Log","path"=>"/ai-api-log");
                     $children[] = array("index" =>$index.'-5',"label" =>"Operation Log","path"=>"/Operationlog");
                     $children[] = array("index" =>$index.'-6',"label" =>"Prompt Configuration","path"=>"/PromptConfiguration");  
             }

+ 9 - 1
service/robot.class.php

@@ -753,7 +753,15 @@ class robot{
         $formatListType = $output_format_configuration['output_type'];
         $formatList = empty($output_format_configuration['data']) ? array(): $output_format_configuration['data'];
         foreach($formatList as $ok =>$ov){
-            $output_format_text .="\"".$ov['name']."\"".": "."\"".$ov['describe']."\"";
+            $describe = $ov['describe'];
+            if ($ov['selecttype'] == '必填字段') {
+                $describe .= " . 必填要求:所有情况必填";
+            } elseif ($ov['selecttype'] == '有条件必填'){
+                $requirements = $ov['requirements'];
+                $describe .= " . 必填要求:".$ov['selecttype']."(".$requirements.")";
+            }
+
+            $output_format_text .="\"".$ov['name']."\"".": "."\"".$describe."\"";
             $output_format_text .=common::splicedLlineBreaks();
         }
         $output_format_text .= "}";