Преглед на файлове

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

15313670163 преди 1 ден
родител
ревизия
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('未查询到模版!');
         }