瀏覽代碼

自助建站-流程管理-返显保存的模版的接口进行修改

15313670163 3 天之前
父節點
當前提交
4b6e7cd2c0
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      app/JsonRpc/PublicRpcService.php

+ 2 - 0
app/JsonRpc/PublicRpcService.php

@@ -2200,9 +2200,11 @@ class PublicRpcService implements PublicRpcServiceInterface
         }
         $template = WebsiteTemplate::where('website_id', $data['website_id'])
             ->first(['website_id', 'template_id', 'page_type', 'template_data', 'canvas_data']);
+       
         if (empty($template)) {
             return Result::error('未查询到模版!');
         }
+         $template['page_type'] = json_decode($template['page_type'],true);
         return Result::success($template);
     }