fix: #0909 订单影响库存同步至所有店铺

This commit is contained in:
赵世界 2022-09-14 12:40:30 +08:00
parent 2c58a95dd0
commit e0b82d1132

View File

@ -49,7 +49,7 @@ class UpdateBusinessGoodsStock implements ShouldQueue
if ('下架' === $event->goodsSku->status) {
return;
}
$shops = Shop::query()->where('id', '<>', $event->businessOrderItem['shop_id'])->whereNotIn('status', [0, 3])->get(['id', 'plat_id']);
$shops = Shop::query()->whereNotIn('status', [0, 3])->get(['id', 'plat_id']);
if (empty($shops)) {
LogFile::info('可操作店铺为空');
return;