fix:前台,预支付校验支付方式
This commit is contained in:
parent
2cb6a07362
commit
0be3db7a89
|
@ -73,6 +73,7 @@ const (
|
|||
OrderAppidNotEqRefundAppid = 1412
|
||||
OrderNotSupportRefundPart = 1413
|
||||
OrderRefundAmountError = 1414
|
||||
OrderPayChannelChange = 1415
|
||||
// 关闭订单
|
||||
CloseOrderPayed = 1420
|
||||
|
||||
|
@ -157,6 +158,8 @@ var MsgZH = map[int]string{
|
|||
OrderClosed: "订单已关闭,无法继续支付",
|
||||
OrderFailed: "订单支付失败,请重新发起",
|
||||
OrderPayed: "订单已支付成功,请勿重复支付",
|
||||
OrderPayChannelChange: "支付方式不一致,切换支付方式请关闭原订单生成新订单",
|
||||
|
||||
NotifySendFail: "回调发送失败",
|
||||
RefundOrderNotFound: "退款订单未找到",
|
||||
OrderStatusRefundNotSupport: "订单状态不支持退款",
|
||||
|
|
|
@ -74,6 +74,10 @@ func (w *PayCheck) CheckOrderPay() {
|
|||
w.CheckCode = errorcode.OrderPayed
|
||||
default:
|
||||
}
|
||||
// 切换了支付方式
|
||||
if w.Reqs.PayChannelId != w.OldOrder.PayChannelId {
|
||||
w.CheckCode = errorcode.OrderPayChannelChange
|
||||
}
|
||||
}
|
||||
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue