购物车删除接参优化

feat/task1-c-wallet
gongfuxiang 2021-12-15 15:25:41 +08:00
parent 79b85b7e22
commit c56fda5add
1 changed files with 1 additions and 1 deletions

View File

@ -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())