Parcourir la source

修改接口:修改网站头部基础信息

15313670163 il y a 2 jours
Parent
commit
3dcf21c085
1 fichiers modifiés avec 4 ajouts et 4 suppressions
  1. 4 4
      app/JsonRpc/WebsiteService.php

+ 4 - 4
app/JsonRpc/WebsiteService.php

@@ -156,11 +156,11 @@ class WebsiteService implements WebsiteServiceInterface
             'suffix' => $data['suffix'] ?? "",
             'ad_key' => $data['ad_key']?? "",
         ];
-        $web_templsate = WebsiteTemplateInfo::where('website_id', $data['id'])->first();
+        // $web_templsate = WebsiteTemplateInfo::where('website_id', $data['id'])->first();
         // `status` tinyint(1) DEFAULT '0' COMMENT '0:未构建 1:未应用 2:已应用',
-        if (!empty($web_templsate) && $web_templsate['status'] == 2) {
-            return Result::error("此网站已应用,不可修改基本信息", 0);
-        }
+        // if (!empty($web_templsate) && $web_templsate['status'] == 2) {
+        //     return Result::error("此网站已应用,不可修改基本信息", 0);
+        // }
        
        Db::beginTransaction();
        try{