add contract for product and refund parse

This commit is contained in:
2026-03-05 10:07:51 +08:00
parent d93fdee203
commit 4c49c2b71c
9 changed files with 122 additions and 38 deletions
-5
View File
@@ -98,11 +98,6 @@ class ProductConsumer extends ConsumerMessage
dump("Processing " . count($data_to_upsert) . " product(s) with batch upsert");
// 检测产品解析器是否实现了 getProductStatusId 方法
if (!method_exists($parse, 'getProductStatusId')) {
throw new \Exception('getProductStatusId method must be implemented in ' . $parse::class);
}
Db::beginTransaction();
// 使用 upsert 批量处理产品插入和更新