wupengfei 2 years ago
parent
commit
21e24e77ee
2 changed files with 3 additions and 4 deletions
  1. 1 1
      .idea/workspace.xml
  2. 2 3
      application/api/controller/OpenSearch.php

+ 1 - 1
.idea/workspace.xml

@@ -249,7 +249,7 @@
       <workItem from="1677718149453" duration="25714000" />
       <workItem from="1677805207495" duration="7323000" />
       <workItem from="1678063982310" duration="24531000" />
-      <workItem from="1678149106133" duration="20343000" />
+      <workItem from="1678149106133" duration="20470000" />
     </task>
     <servers />
   </component>

+ 2 - 3
application/api/controller/OpenSearch.php

@@ -147,9 +147,8 @@ class OpenSearch extends Base
         // 执行搜索,获取搜索结果
         $ret = $searchClient->execute($params->build());
         // 将json类型字符串解码
-        print_r(json_decode($ret->result,true));
-        //打印调试信息
-        echo $ret->traceInfo->tracer;
+        $this->success('ok',['list'=>json_decode($ret->result,true)]);
+
     }