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

自助建站---流程---6.返显保存的模版

15313670163 22 часов назад
Родитель
Сommit
31a393724e
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      app/JsonRpc/PublicRpcService.php

+ 2 - 1
app/JsonRpc/PublicRpcService.php

@@ -1469,7 +1469,8 @@ class PublicRpcService implements PublicRpcServiceInterface
         if(empty($web)){
             return Result::error('未查询到网站信息!');
         }
-        $template = WebsiteTemplate::where('website_id', $data['website_id'])->first();
+        $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('未查询到模版!');
         }