feat: 退款接口fix
This commit is contained in:
parent
d15d39bee0
commit
52ce6efce1
|
@ -42,6 +42,12 @@ func (w *PayCheck) CheckPayInfo() {
|
|||
if w.CheckCode != errorcode.Success {
|
||||
return
|
||||
}
|
||||
|
||||
// 走收银台支付的订单可能没有支付方式兼容
|
||||
if w.Reqs.PayChannelId == 0 {
|
||||
w.Reqs.PayChannelId = w.OldOrder.PayChannelId
|
||||
}
|
||||
|
||||
w.CheckPayChannel()
|
||||
if w.CheckCode != errorcode.Success {
|
||||
return
|
||||
|
|
|
@ -55,12 +55,15 @@ func ThirdPayRefundCheck(ctx context.Context, refundReq *front.RefundReqs, appCh
|
|||
}
|
||||
copier.Copy(&req, refundReq)
|
||||
check = thirdpay.NewPayCheck(&ctx, &req, appCheck, ip)
|
||||
//// 校验表单
|
||||
//check.CheckPayInfo()
|
||||
//if check.CheckCode != errorcode.Success {
|
||||
// return check, check.CheckCode
|
||||
//}
|
||||
|
||||
check.CheckOrderRefund()
|
||||
if check.CheckCode != errorcode.Success {
|
||||
return check, check.CheckCode
|
||||
}
|
||||
|
||||
// 校验表单
|
||||
check.CheckPayInfo()
|
||||
|
||||
return check, check.CheckCode
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue