Selaa lähdekoodia

mi wan pay template options

zz 6 vuotta sitten
vanhempi
commit
28b566cda6
1 muutettua tiedostoa jossa 10 lisäystä ja 1 poistoa
  1. 10 1
      app/Http/Controllers/Wap/Web/WelcomeController.php

+ 10 - 1
app/Http/Controllers/Wap/Web/WelcomeController.php

@@ -176,7 +176,8 @@ class WelcomeController extends BaseController
             'outstanding_year_order'=>$outstanding_year_order,
             'share_domain'=>env('share_domain_url'),
             'share_switch'=>$share_switch,
-            'pdd_ad'=>$pdd_ad
+            'pdd_ad'=>$pdd_ad,
+            'special_pay_template'=>$this->isMiWan()  //米玩站点特殊充值页面
         ]);
         if ($this->uid == env('SPECIAL_USER_LOG', 2)) {
             myLog('special')->info('welcome --------------------------');
@@ -531,6 +532,14 @@ class WelcomeController extends BaseController
         $result = json_decode($result,1);
         return array_keys($result);
     }
+
+
+    private function isMiWan(){
+        $miwan_channel_ids = redisEnv('MIWAN_CHANNEL_ID');
+        if(!$miwan_channel_ids) return false;
+        return in_array($this->distribution_channel_id,explode(',',$miwan_channel_ids));
+    }
+
     /**
      * 获取客服图片
      */