|
|
@@ -359,7 +359,7 @@ func WebPayHwRuNotify(c *gin.Context) {
|
|
|
ntfData.PayChannel = "qk_hw"
|
|
|
util.WarnF("paycallback uid=%v cpOrderNo=%v orderNo=%v payAmount=%v payCurrency=%v payType=%v usdAmount=%v",
|
|
|
uid, cpOrderId, orderNo, payAmount, payCurrency, payType, usdAmount)
|
|
|
- f64, err := strconv.ParseFloat(usdAmount, 32)
|
|
|
+ f64, err := strconv.ParseFloat(payAmount, 32)
|
|
|
if err != nil {
|
|
|
fmt.Println("Error:", err)
|
|
|
return
|
|
|
@@ -381,7 +381,6 @@ func WebPayHwRuNotify(c *gin.Context) {
|
|
|
//routerString := routerStr.String()
|
|
|
//util.WarnF("paycallback routerString:%v\n", routerString)
|
|
|
//go sendPosts(payPostRouter, routerString)
|
|
|
-
|
|
|
c.String(http.StatusOK, "success")
|
|
|
}
|
|
|
|
|
|
@@ -703,7 +702,7 @@ func webPayNotify(webNtf *WebNotifyData, payAmount float32, c *gin.Context) stri
|
|
|
}
|
|
|
if payInfo.OrderState == int32(serverproto.PayOrderState_EPayOrderState_Gen) {
|
|
|
//实际支付 == 订单的钱,否则为支付失败
|
|
|
- payAmount := int32(payAmount * 1000)
|
|
|
+ payAmount := int32(payAmount * 10) //该渠道是以分为单位(游戏以卢布为单位)
|
|
|
//服务器订单实际金额:
|
|
|
orderAmount := int32(payInfo.Amount * 1000)
|
|
|
if payAmount == orderAmount {
|