From 4dd369729d59dbd3fd3acf94071b2b2823d1cff6 Mon Sep 17 00:00:00 2001 From: yangduo Date: Tue, 24 Dec 2024 13:51:53 +0800 Subject: [PATCH] fix --- bin/payserver/config/config.json | 2 +- server/payserver/service/wxpay.go | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bin/payserver/config/config.json b/bin/payserver/config/config.json index 6c6a00f..f637e8d 100644 --- a/bin/payserver/config/config.json +++ b/bin/payserver/config/config.json @@ -1,4 +1,4 @@ { "gameapi_url": "https://game2006api-test.kingsome.cn", - "jwks_uri": "https://auth.immutable.com/.well-known/jwks.json" + "wx_url": "api.weixin.qq.com|api2.weixin.qq.com|sh.api.weixin.qq.com|sz.api.weixin.qq.com|hk.api.weixin.qq.com" } diff --git a/server/payserver/service/wxpay.go b/server/payserver/service/wxpay.go index 9e32a69..6c87c4d 100644 --- a/server/payserver/service/wxpay.go +++ b/server/payserver/service/wxpay.go @@ -121,7 +121,7 @@ func (wp *wxpay) QueryBalance(openid string, gameid int64, userip string, sessio sendRequest := false urls := mt.Table.Config.GetWxUrl() for _, urlheader := range urls { - url := urlheader + queryuri + url := "https://" + urlheader + queryuri f5.GetHttpCliMgr().SendGoStylePost( url, params, @@ -129,7 +129,7 @@ func (wp *wxpay) QueryBalance(openid string, gameid int64, userip string, sessio poststr, func(rsp f5.HttpCliResponse) { if rsp.GetErr() != nil { - + return } sendRequest = true @@ -205,7 +205,7 @@ func (wp *wxpay) QueryPay(openid string, gameid int64, userip string, sessionkey sendRequest := false urls := mt.Table.Config.GetWxUrl() for _, urlheader := range urls { - url := urlheader + queryuri + url := "https://" + urlheader + queryuri f5.GetHttpCliMgr().SendGoStylePost( url, params, @@ -213,7 +213,7 @@ func (wp *wxpay) QueryPay(openid string, gameid int64, userip string, sessionkey poststr, func(rsp f5.HttpCliResponse) { if rsp.GetErr() != nil { - + return } sendRequest = true