1
This commit is contained in:
@@ -197,10 +197,17 @@ func (c *PurchaseHandler) callbackAfsMsg2Status(msg *mtwmapi.CallbackMsg) (order
|
|||||||
} else {
|
} else {
|
||||||
orderStatus.VendorOrderID = orderStatus.RefVendorOrderID
|
orderStatus.VendorOrderID = orderStatus.RefVendorOrderID
|
||||||
}
|
}
|
||||||
|
if refundData.NotifyType == "" && refundData.ResType == model.NO {
|
||||||
|
orderStatus.VendorStatus = "用户申请退货且退款"
|
||||||
|
}
|
||||||
return orderStatus
|
return orderStatus
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *PurchaseHandler) GetAfsStatusFromVendorStatus(resType int, notifyType string) int {
|
func (c *PurchaseHandler) GetAfsStatusFromVendorStatus(resType int, notifyType string) int {
|
||||||
|
// 当resType为0且notifyType为空的时候,是退货退款,之前是未处理这个,现在退货退款默认成退款未处理
|
||||||
|
if notifyType == "" {
|
||||||
|
notifyType = mtwmapi.NotifyTypeApply
|
||||||
|
}
|
||||||
status := AfsVendorStatus2StatusMap[notifyType]
|
status := AfsVendorStatus2StatusMap[notifyType]
|
||||||
if status == model.AfsOrderStatusWait4Approve && resType != mtwmapi.ResTypePending {
|
if status == model.AfsOrderStatusWait4Approve && resType != mtwmapi.ResTypePending {
|
||||||
status = model.AfsOrderStatusNew
|
status = model.AfsOrderStatusNew
|
||||||
|
|||||||
Reference in New Issue
Block a user