Преглед изворни кода

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