瀏覽代碼

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]);
     }
 }