mirror of
https://gitee.com/zongzhige/shopxo.git
synced 2026-06-07 02:12:25 +08:00
购物车删除接参优化
This commit is contained in:
@ -358,7 +358,7 @@ class BuyService
|
||||
|
||||
// 删除
|
||||
$where = [
|
||||
'id' => explode(',', $params['id']),
|
||||
'id' => is_array($params['id']) ? $params['id'] : explode(',', $params['id']),
|
||||
'user_id' => $params['user']['id']
|
||||
];
|
||||
if(Db::name('Cart')->where($where)->delete())
|
||||
|
||||
Reference in New Issue
Block a user