Explorar o código

修改c端接口:获取网站信息

FengR hai 4 meses
pai
achega
5249b2d3bd
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      app/JsonRpc/WebsiteService.php

+ 5 - 1
app/JsonRpc/WebsiteService.php

@@ -2778,7 +2778,11 @@ class WebsiteService implements WebsiteServiceInterface
      */
     public function getWebsiteFootAll(array $data): array
     {
-        $website = Website::where('id', $data['website_id'])->where('status', 1)->first();
+        if(!isset($data['is_diyweb']) || empty($data['is_diyweb'])){
+            $website = Website::where('id',$data['website_id'])->where('status',1)->first();
+        }else{
+            $website = Website::where('id',$data['website_id'])->first();
+        }
         if (empty($website)) {
             return Result::error("暂无该网站", 0);
         }