浏览代码

修改接口:通栏版式管理-版式画布

FengR 1 月之前
父节点
当前提交
b7a965cf18
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      app/JsonRpc/PublicRpcService.php

+ 2 - 2
app/JsonRpc/PublicRpcService.php

@@ -4573,7 +4573,7 @@ class PublicRpcService implements PublicRpcServiceInterface
      */
     public function addTemplateCates(array $data): array
     {
-        $website_template = TemplateDraftbox::where('id',$data['template_id'])->first();
+        $website_template = TemplateDraftbox::where('session_id',$data['session_id'])->first();
         if(empty($website_template)){
             return Result::error('此网站模板不存在!');
         }
@@ -4601,7 +4601,7 @@ class PublicRpcService implements PublicRpcServiceInterface
         if(count($all_cate) == 0){
             return Result::error('栏目不存在!');
         }
-        foreach ($all_cate as $key => $item) {
+        foreach ($template_index as $key => $item) {
             
         }
         return Result::success($all_cate);