|
|
@@ -28,6 +28,7 @@ class IndexController extends webApp
|
|
|
public function config()
|
|
|
{
|
|
|
try {
|
|
|
+ $params = request()->all();
|
|
|
$appSources = request()->post('app_sources', 'ios');
|
|
|
$system = isset($params['system']) && $params['system'] ? $params['system'] : [];
|
|
|
$platform = isset($system['platform']) && $system['platform']? $system['platform'] : 'mp';
|
|
|
@@ -127,7 +128,8 @@ class IndexController extends webApp
|
|
|
$data = [
|
|
|
// 轮播
|
|
|
'banners' => AdService::make()->getListByPosition($position),
|
|
|
- 'cart_count' => CartService::make()->getCount($this->userId)
|
|
|
+ 'cart_count' => CartService::make()->getCount($this->userId),
|
|
|
+ 'system'=>$system
|
|
|
];
|
|
|
|
|
|
if ($type == 2) {
|