|
@@ -95,7 +95,7 @@ class Cart extends Controller
|
|
|
* @throws \think\db\exception\DbException
|
|
|
* @throws \think\db\exception\ModelNotFoundException
|
|
|
*/
|
|
|
- public function add(int $goodsId, string $goodsSkuId, int $goodsNum): Json
|
|
|
+ public function add(int $goodsId, string $goodsSkuId, int $goodsNum)
|
|
|
{
|
|
|
$userId = Session::get('user_id');
|
|
|
if (empty($userId)) {
|