讨论数量:
@reiz568569 电商实战 6.4 购物车下单页面『减库存』这个?
···
$this->newQuery()->where('id', $this->id)->where('stock', '>=', $amount)->decrement('stock', $amount);
···
@reiz568569 电商实战 6.4 购物车下单页面『减库存』这个?
···
$this->newQuery()->where('id', $this->id)->where('stock', '>=', $amount)->decrement('stock', $amount);
···
推荐文章: