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