fix
This commit is contained in:
parent
04a2e716fe
commit
4dd369729d
@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"gameapi_url": "https://game2006api-test.kingsome.cn",
|
"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"
|
||||||
}
|
}
|
||||||
|
@ -121,7 +121,7 @@ func (wp *wxpay) QueryBalance(openid string, gameid int64, userip string, sessio
|
|||||||
sendRequest := false
|
sendRequest := false
|
||||||
urls := mt.Table.Config.GetWxUrl()
|
urls := mt.Table.Config.GetWxUrl()
|
||||||
for _, urlheader := range urls {
|
for _, urlheader := range urls {
|
||||||
url := urlheader + queryuri
|
url := "https://" + urlheader + queryuri
|
||||||
f5.GetHttpCliMgr().SendGoStylePost(
|
f5.GetHttpCliMgr().SendGoStylePost(
|
||||||
url,
|
url,
|
||||||
params,
|
params,
|
||||||
@ -129,7 +129,7 @@ func (wp *wxpay) QueryBalance(openid string, gameid int64, userip string, sessio
|
|||||||
poststr,
|
poststr,
|
||||||
func(rsp f5.HttpCliResponse) {
|
func(rsp f5.HttpCliResponse) {
|
||||||
if rsp.GetErr() != nil {
|
if rsp.GetErr() != nil {
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
sendRequest = true
|
sendRequest = true
|
||||||
@ -205,7 +205,7 @@ func (wp *wxpay) QueryPay(openid string, gameid int64, userip string, sessionkey
|
|||||||
sendRequest := false
|
sendRequest := false
|
||||||
urls := mt.Table.Config.GetWxUrl()
|
urls := mt.Table.Config.GetWxUrl()
|
||||||
for _, urlheader := range urls {
|
for _, urlheader := range urls {
|
||||||
url := urlheader + queryuri
|
url := "https://" + urlheader + queryuri
|
||||||
f5.GetHttpCliMgr().SendGoStylePost(
|
f5.GetHttpCliMgr().SendGoStylePost(
|
||||||
url,
|
url,
|
||||||
params,
|
params,
|
||||||
@ -213,7 +213,7 @@ func (wp *wxpay) QueryPay(openid string, gameid int64, userip string, sessionkey
|
|||||||
poststr,
|
poststr,
|
||||||
func(rsp f5.HttpCliResponse) {
|
func(rsp f5.HttpCliResponse) {
|
||||||
if rsp.GetErr() != nil {
|
if rsp.GetErr() != nil {
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
sendRequest = true
|
sendRequest = true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user