update
This commit is contained in:
@@ -116,6 +116,8 @@ class OrderConsumer extends ConsumerMessage
|
|||||||
throw new Exception('formatOrderItemsFromRaw method must be implemented in ' . $parse::class );
|
throw new Exception('formatOrderItemsFromRaw method must be implemented in ' . $parse::class );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//@TODO order type 也需要进一步确定 app/Constants/OrderType.php
|
||||||
|
|
||||||
// 检测订单解析器是否实现了 getOrderStatusId 方法
|
// 检测订单解析器是否实现了 getOrderStatusId 方法
|
||||||
// 该方法处理了电商平台订单状态到本地订单状态枚举值 \App\Constants\OrderStatus 的映射
|
// 该方法处理了电商平台订单状态到本地订单状态枚举值 \App\Constants\OrderStatus 的映射
|
||||||
if( !method_exists($parse, 'getOrderStatusId')){
|
if( !method_exists($parse, 'getOrderStatusId')){
|
||||||
|
|||||||
@@ -352,6 +352,6 @@ class Refund extends EntityParse
|
|||||||
return RefundType::RETURN_AND_REFUND->value;
|
return RefundType::RETURN_AND_REFUND->value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return RefundType::REFUND_ONLY->value;
|
return RefundType::RETURN_BEFORE_SHIPPING->value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user