商品显示状态更新添加事务

This commit is contained in:
luofei 2023-05-15 14:39:36 +08:00
parent d9bdc105ab
commit b3e05077fc

View File

@ -289,8 +289,10 @@ class SpuRepository extends BaseRepository
Queue(SendSmsJob::class, ['tempId' => 'PRODUCT_INCREASE', 'id' => $id]);
}
if (in_array($productType, [0, 98])) Queue::push(SyncProductTopJob::class,[]);
return true;
} catch (\Exception $exception) {
Log::info($exception->getMessage());
return false;
}
}