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
|
||||
|
||||
|
@ -149,14 +150,16 @@ var MsgZH = map[int]string{
|
|||
RequestLogNotFound: "未找到日志信息",
|
||||
RequestResponseValid: "上游返回格式无效",
|
||||
|
||||
OrdersNotFound: "未找到订单",
|
||||
OrdersExist: "订单已存在",
|
||||
OrderTypeNotFount: "未知的支付方式",
|
||||
OrderIsDelete: "订单已删除",
|
||||
OrderStatusErr: "订单状态错误",
|
||||
OrderClosed: "订单已关闭,无法继续支付",
|
||||
OrderFailed: "订单支付失败,请重新发起",
|
||||
OrderPayed: "订单已支付成功,请勿重复支付",
|
||||
OrdersNotFound: "未找到订单",
|
||||
OrdersExist: "订单已存在",
|
||||
OrderTypeNotFount: "未知的支付方式",
|
||||
OrderIsDelete: "订单已删除",
|
||||
OrderStatusErr: "订单状态错误",
|
||||
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