瀏覽代碼

Merge branch 'master' into dev

shish 3 月之前
父節點
當前提交
db28ed3560
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      app-ghs/controllers/MainController.php

+ 4 - 1
app-ghs/controllers/MainController.php

@@ -246,9 +246,11 @@ class MainController extends BaseController
             $showAd = 0;
             $showAd = 0;
         }
         }
         //没有登录不显示广告
         //没有登录不显示广告
-        if(empty($this->mainId)){
+        if (empty($this->mainId)) {
             $showAd = 0;
             $showAd = 0;
         }
         }
+        //是否展示终身版套餐
+        $lifelong = 0;
 
 
         $deadline = $sj['deadline'] ?? '';
         $deadline = $sj['deadline'] ?? '';
         $relation = isset($this->shopAdmin) && !empty($this->shopAdmin) ? $this->shopAdmin->attributes : [];
         $relation = isset($this->shopAdmin) && !empty($this->shopAdmin) ? $this->shopAdmin->attributes : [];
@@ -278,6 +280,7 @@ class MainController extends BaseController
             'fast1' => '17189513228',
             'fast1' => '17189513228',
             'fast2' => '15280215347',
             'fast2' => '15280215347',
             'showAd' => $showAd,
             'showAd' => $showAd,
+            'lifelong' => $lifelong,
         ];
         ];
         util::success($data);
         util::success($data);
     }
     }