Ver Fonte

修改获取及搜索网站模板

15313670163 há 2 meses atrás
pai
commit
c6ed367726
2 ficheiros alterados com 2 adições e 2 exclusões
  1. 1 1
      app/JsonRpc/WebsiteService.php
  2. 1 1
      runtime/hyperf.pid

+ 1 - 1
app/JsonRpc/WebsiteService.php

@@ -1306,7 +1306,7 @@ class WebsiteService implements WebsiteServiceInterface
             } else{
                 $where = json_decode($page_type['page_type'], true);
                  // $where = $data["page_type"];
-                if(isset($data['template_class_id'])){
+                if(isset($data['template_class_id']) && !empty($data['template_class_id'])){
                     $template_class = TemplateClass::where('id',$data['template_class_id'])->first();
                     if(empty($template_class)){
                         return Result::error("请输入正确的模板风格id!",0);

+ 1 - 1
runtime/hyperf.pid

@@ -1 +1 @@
-29724
+30626