add contract for product and refund parse
This commit is contained in:
@@ -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 批量处理产品插入和更新
|
||||
|
||||
Reference in New Issue
Block a user