!82 订单库存同步错误修改

Merge pull request !82 from 赵世界/develop
This commit is contained in:
赵世界 2022-08-30 16:22:51 +00:00 committed by Gitee
commit e5fd7121ff
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -48,9 +48,6 @@ class BusinessOrdersUpdate
} }
if ($this->goodsSku) { if ($this->goodsSku) {
$this->goodsSku->stock += $this->num; $this->goodsSku->stock += $this->num;
if ($this->goodsSku->stock <= 0) {
$this->goodsSku->status = 0;
}
$this->goodsSku->save(); $this->goodsSku->save();
} }
} }