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