This commit is contained in:
2026-02-25 14:33:11 +08:00
parent beffc91b8e
commit 9060de7d1b
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -116,6 +116,8 @@ class OrderConsumer extends ConsumerMessage
throw new Exception('formatOrderItemsFromRaw method must be implemented in ' . $parse::class );
}
//@TODO order type 也需要进一步确定 app/Constants/OrderType.php
// 检测订单解析器是否实现了 getOrderStatusId 方法
// 该方法处理了电商平台订单状态到本地订单状态枚举值 \App\Constants\OrderStatus 的映射
if( !method_exists($parse, 'getOrderStatusId')){
@@ -352,6 +352,6 @@ class Refund extends EntityParse
return RefundType::RETURN_AND_REFUND->value;
}
return RefundType::REFUND_ONLY->value;
return RefundType::RETURN_BEFORE_SHIPPING->value;
}
}