From 9060de7d1bbf053e66cedeb7cfbee18c3a611ab3 Mon Sep 17 00:00:00 2001 From: Nick Zeng Date: Wed, 25 Feb 2026 14:33:11 +0800 Subject: [PATCH] update --- backend/app/Platform/OrderConsumer.php | 2 ++ backend/app/Platform/Shopee/EntityParse/Refund.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/app/Platform/OrderConsumer.php b/backend/app/Platform/OrderConsumer.php index 3f9b859..1a8e728 100644 --- a/backend/app/Platform/OrderConsumer.php +++ b/backend/app/Platform/OrderConsumer.php @@ -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')){ diff --git a/backend/app/Platform/Shopee/EntityParse/Refund.php b/backend/app/Platform/Shopee/EntityParse/Refund.php index 8d58255..ddc2571 100644 --- a/backend/app/Platform/Shopee/EntityParse/Refund.php +++ b/backend/app/Platform/Shopee/EntityParse/Refund.php @@ -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; } }