fadd
This commit is contained in:
@@ -105,8 +105,17 @@ func (l *PaymentCheckLogic) syncXpayOrderStatus(order *model.Order) (xpaySyncInf
|
||||
return info, nil
|
||||
}
|
||||
|
||||
if service.IsXpayRefundedStatus(status.Status) || service.IsXpayAlreadyRefunded(status) {
|
||||
order.Status = model.OrderStatusRefunded
|
||||
if updateErr := l.svcCtx.OrderModel.UpdateWithVersion(l.ctx, nil, order); updateErr != nil {
|
||||
return info, updateErr
|
||||
}
|
||||
l.Infof("[xpay] check sync refunded order_no=%s wx_status=%d left_fee=%d", order.OrderNo, status.Status, status.LeftFee)
|
||||
return info, nil
|
||||
}
|
||||
|
||||
if service.IsXpayClosedStatus(status.Status) {
|
||||
order.Status = "closed"
|
||||
order.Status = model.OrderStatusClosed
|
||||
if updateErr := l.svcCtx.OrderModel.UpdateWithVersion(l.ctx, nil, order); updateErr != nil {
|
||||
return info, updateErr
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user