소스 검색

显示推荐广告

shish 4 달 전
부모
커밋
587005c96e
1개의 변경된 파일7개의 추가작업 그리고 0개의 파일을 삭제
  1. 7 0
      app-ghs/controllers/MainController.php

+ 7 - 0
app-ghs/controllers/MainController.php

@@ -239,6 +239,12 @@ class MainController extends BaseController
         }
         $smallShopImg = $shopImg . "?x-oss-process=image/resize,m_fill,h_180,w_180";
 
+        //是否显示推荐广告
+        $showAd = 0;
+        if ($this->mainId == 58) {
+            $showAd = 0;
+        }
+
         $deadline = $sj['deadline'] ?? '';
         $relation = isset($this->shopAdmin) && !empty($this->shopAdmin) ? $this->shopAdmin->attributes : [];
         $adminName = $relation['name'] ?? '';
@@ -266,6 +272,7 @@ class MainController extends BaseController
             'lookMoney' => $lookMoney,
             'fast1' => '17189513228',
             'fast2' => '15280215347',
+            'showAd' => $showAd,
         ];
         util::success($data);
     }