wesmiler před 1 měsícem
rodič
revize
65691b5df8
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      app/Http/Controllers/Api/v1/IndexController.php

+ 2 - 2
app/Http/Controllers/Api/v1/IndexController.php

@@ -137,8 +137,8 @@ class IndexController extends webApp
 
                 $params['user_id'] = $this->userId;
                 $data['stores'] = StoreService::make()->getGoodsList($params);
-                $data['social_open'] = $platform? 1 : ConfigService::make()->getConfigByCode('social_open', 0);
-                $data['pay_recharge_open'] = $platform? 1 : ConfigService::make()->getConfigByCode('pay_recharge_open', 0);
+                $data['social_open'] = $platform=='wechat'? 1 : ConfigService::make()->getConfigByCode('social_open', 0);
+                $data['pay_recharge_open'] = $platform=='wechat'? 1 : ConfigService::make()->getConfigByCode('pay_recharge_open', 0);
             }
 
             return showJson(1010, true, $data);