소스 검색

ai会话-给模板添加导航

FengR 1 개월 전
부모
커밋
803e838a20
1개의 변경된 파일6개의 추가작업 그리고 3개의 파일을 삭제
  1. 6 3
      app/JsonRpc/PublicRpcService.php

+ 6 - 3
app/JsonRpc/PublicRpcService.php

@@ -4678,9 +4678,12 @@ class PublicRpcService implements PublicRpcServiceInterface
         if(count($all_cate) == 0){
             return Result::error('栏目不存在!');
         }
-        foreach ($template_index as $key => $item) {
-            
+        $componentList = array_column($template_index,'component_id');·
+        foreach ($componentList as $key => $item) {
+            if(count($componentList) == 1){
+                
+            }
         }
-        return Result::success($all_cate);
+        return Result::success(['template_index'=>$template_index,'canvas_index'=>$canvas_index]);
     }
 }