|
|
@@ -4,6 +4,7 @@ namespace App\Http\Controllers\Api\v1;
|
|
|
|
|
|
use App\Http\Controllers\Api\webApp;
|
|
|
use App\Services\Api\CartService;
|
|
|
+use App\Services\ConfigService;
|
|
|
|
|
|
/**
|
|
|
* 购物车管理
|
|
|
@@ -101,7 +102,10 @@ class CartController extends webApp
|
|
|
try {
|
|
|
|
|
|
if ($result = CartService::make()->getCount($this->userId)) {
|
|
|
- return message(1010, true, $result);
|
|
|
+ return message(1010, true, [
|
|
|
+ 'count'=>$result,
|
|
|
+ 'social_open'=> ConfigService::make()->getConfigByCode('social_open', 0),
|
|
|
+ ]);
|
|
|
} else {
|
|
|
return message(1009, false);
|
|
|
}
|