feat: 修改订单逻辑,移除购物车商品的删除时间字段更新

This commit is contained in:
mkm 2024-06-04 18:01:09 +08:00
parent fe4cb330c9
commit 2b89b5527a

View File

@ -141,7 +141,7 @@ class OrderLogic extends BaseLogic
} }
(new StoreOrderCartInfo())->saveAll($goods_list); (new StoreOrderCartInfo())->saveAll($goods_list);
$where = ['is_pay' => 0]; $where = ['is_pay' => 0];
Cart::whereIn('id', $cartId)->where($where)->update(['is_pay' => 1, 'delete_time' => time()]); Cart::whereIn('id', $cartId)->where($where)->update(['is_pay' => 1]);
Db::commit(); Db::commit();
return $order; return $order;
} catch (\Exception $e) { } catch (\Exception $e) {