Commit ab80073f authored by 刘小敏's avatar 刘小敏

购物车列表接口添加收藏属性

parent 5cc2bc9b
......@@ -28,6 +28,7 @@ class Cart extends Common
$carts = CartModel::with([
'goods' => function ($query) {
$query->removeOption('soft_delete');
$query->with('favorite');
}, 'sku_price'
])->where('user_id', $user->id)->order('id', 'desc')->select();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment