wesmiler 1 месяц назад
Родитель
Сommit
65691b5df8
1 измененных файлов с 2 добавлено и 2 удалено
  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);