|
|
@@ -119,6 +119,7 @@ class IndexController extends webApp
|
|
|
{
|
|
|
try {
|
|
|
$params = request()->all();
|
|
|
+ $platform = request()->post('platform', 'mp');
|
|
|
$type = isset($params['type']) && $params['type'] ? $params['type'] : 1;
|
|
|
$position = isset($params['position']) && $params['position'] ? $params['position'] : 1;
|
|
|
$data = [
|
|
|
@@ -136,8 +137,8 @@ class IndexController extends webApp
|
|
|
|
|
|
$params['user_id'] = $this->userId;
|
|
|
$data['stores'] = StoreService::make()->getGoodsList($params);
|
|
|
- $data['social_open'] = ConfigService::make()->getConfigByCode('social_open', 0);
|
|
|
- $data['pay_recharge_open'] = ConfigService::make()->getConfigByCode('pay_recharge_open', 0);
|
|
|
+ $data['social_open'] = $platform? 1 : ConfigService::make()->getConfigByCode('social_open', 0);
|
|
|
+ $data['pay_recharge_open'] = $platform? 1 : ConfigService::make()->getConfigByCode('pay_recharge_open', 0);
|
|
|
}
|
|
|
|
|
|
return showJson(1010, true, $data);
|