Просмотр исходного кода

ai会话-给模板添加导航

FengR 1 месяц назад
Родитель
Сommit
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]);
     }
 }