瀏覽代碼

修改获取及搜索网站模板

15313670163 2 月之前
父節點
當前提交
c6ed367726
共有 2 個文件被更改,包括 2 次插入2 次删除
  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