Explorar o código

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

15313670163 hai 3 días
pai
achega
4b6e7cd2c0
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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);
     }