|
|
@@ -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);
|