|
|
@@ -4,6 +4,7 @@ namespace App\Http\Controllers\Api\v1;
|
|
|
|
|
|
use App\Http\Controllers\Api\webApp;
|
|
|
use App\Services\Api\ArticleService;
|
|
|
+use App\Services\Api\CartService;
|
|
|
use App\Services\Api\GoodsService;
|
|
|
use App\Services\Api\OrderService;
|
|
|
use App\Services\Api\SupervisorsService;
|
|
|
@@ -79,6 +80,7 @@ class IndexController extends webApp
|
|
|
'banners' => AdService::make()->getListByPosition(1), // 轮播
|
|
|
'goods1' => GoodsService::make()->getListByZoneType(2), // 限定商品
|
|
|
'goods2' => GoodsService::make()->getListByZoneType(3), // 优选商品
|
|
|
+ 'cart_count' => CartService::make()->getCount($this->userId),
|
|
|
'config'=>[
|
|
|
'short_name' => ConfigService::make()->getConfigByCode('short_name'),
|
|
|
'index_logo' => get_image_url(ConfigService::make()->getConfigByCode('index_logo')),
|