wesmiler 1 mēnesi atpakaļ
vecāks
revīzija
250f011bdb
1 mainītis faili ar 3 papildinājumiem un 1 dzēšanām
  1. 3 1
      app/Http/Controllers/Api/v1/IndexController.php

+ 3 - 1
app/Http/Controllers/Api/v1/IndexController.php

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