Browse Source

Merge branch '20250522_diywebfr'

15313670163 1 day ago
parent
commit
9dd7321479
1 changed files with 5 additions and 1 deletions
  1. 5 1
      app/JsonRpc/WebsiteService.php

+ 5 - 1
app/JsonRpc/WebsiteService.php

@@ -2229,6 +2229,11 @@ class WebsiteService implements WebsiteServiceInterface
             $errorMessage = "请先添加 " . implode(" 和 ", $missingTypes) . "!";
             return Result::error($errorMessage, 0);
         }
+        // '站点状态0:关闭 1:开启
+        $web = Website::where('website.id', $data['website_id'])->first();
+        if($web['status'] == 0){
+            return Result::error("此网站已关闭!", 0);
+        }
         return Result::success($result);
     }
     /**
@@ -2247,7 +2252,6 @@ class WebsiteService implements WebsiteServiceInterface
         if($result['status'] == 2){
             return Result::error("此网站的模板正在应用中,暂不可编辑!", 0);
         }
-
         // 订单状态:1:通过;2:驳回;3:撤回;4:修改;5:过期;6:待审核;7:结束
         $order = Order::where('website_id', $data['website_id'])->where('status', 1)->first();
         if (!empty($order)) {