|
@@ -1320,10 +1320,10 @@ func webPayNotify(webNtf *WebNotifyData, payAmount float32, c *gin.Context) stri
|
|
|
}
|
|
}
|
|
|
if payInfo.OrderState == int32(serverproto.PayOrderState_EPayOrderState_Gen) {
|
|
if payInfo.OrderState == int32(serverproto.PayOrderState_EPayOrderState_Gen) {
|
|
|
//实际支付 == 订单的钱,否则为支付失败
|
|
//实际支付 == 订单的钱,否则为支付失败
|
|
|
- payAmount := int32(payAmount * 10) //该渠道是以分为单位(游戏以卢布为单位)
|
|
|
|
|
|
|
+ //payAmount := int32(payAmount * 100) //该渠道是以分为单位(游戏以卢布为单位)
|
|
|
//服务器订单实际金额:
|
|
//服务器订单实际金额:
|
|
|
- orderAmount := int32(payInfo.Amount * 1000)
|
|
|
|
|
- if payAmount == orderAmount {
|
|
|
|
|
|
|
+ //orderAmount := int32(payInfo.Amount * 1000)
|
|
|
|
|
+ if payAmount == payInfo.Amount {
|
|
|
payInfo.OrderState = int32(serverproto.PayOrderState_EPayOrderState_PayOk)
|
|
payInfo.OrderState = int32(serverproto.PayOrderState_EPayOrderState_PayOk)
|
|
|
} else {
|
|
} else {
|
|
|
payInfo.OrderState = int32(serverproto.PayOrderState_EPayOrderState_PayFailed)
|
|
payInfo.OrderState = int32(serverproto.PayOrderState_EPayOrderState_PayFailed)
|