Explorar o código

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

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

+ 5 - 1
app/JsonRpc/WebsiteService.php

@@ -2168,7 +2168,11 @@ class WebsiteService implements WebsiteServiceInterface
      */
      */
     public function getWebsiteFootAll(array $data): array
     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)) {
         if (empty($website)) {
             return Result::error("暂无该网站",0); 
             return Result::error("暂无该网站",0); 
         }
         }