feat: v2预支付fix
This commit is contained in:
parent
9397b72a2e
commit
d634ca7d22
|
@ -79,6 +79,8 @@ const (
|
|||
OrderRefundAmountError = 1414
|
||||
OrderPayChannelChange = 1415
|
||||
OrderPayRequestLogNotExist = 1416
|
||||
|
||||
OrderPayRequestAcquireLock = 1430
|
||||
// 关闭订单
|
||||
CloseOrderPayed = 1420
|
||||
|
||||
|
@ -188,9 +190,10 @@ var MsgZH = map[int]string{
|
|||
|
||||
ThirdRefundFail: "第三方退款失败",
|
||||
|
||||
WechatAuthFail: "微信授权失败",
|
||||
WechatAuthSignFail: "微信签名失败",
|
||||
ClientEnvErr: "支付环境错误",
|
||||
WechatAuthFail: "微信授权失败",
|
||||
WechatAuthSignFail: "微信签名失败",
|
||||
ClientEnvErr: "支付环境错误",
|
||||
OrderPayRequestAcquireLock: "系统繁忙,请稍后再试",
|
||||
}
|
||||
var MsgMap map[string]map[int]string = map[string]map[int]string{"en": MsgZH}
|
||||
|
||||
|
|
|
@ -181,6 +181,9 @@ func (this *payUrl) PayUrlV2Service() (result front.PayReqsV2Response, code int)
|
|||
} else {
|
||||
if err != nil {
|
||||
utils.Log(nil, "", "PayUrlV2Service,获取分布式锁失败", fmt.Sprintf("错误原因:%s", err.Error()))
|
||||
code = errorcode.SystemError
|
||||
} else {
|
||||
code = errorcode.OrderPayRequestAcquireLock
|
||||
}
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue