adjust
This commit is contained in:
parent
d4cfb42730
commit
a5a4645ff2
@ -401,7 +401,17 @@ func (wp *wxpay) checkAccessToken() {
|
||||
})
|
||||
} else {
|
||||
if !wp.refreshflag {
|
||||
continue
|
||||
wp.accessTokens.Range(func(key int64, value TokenInfo) bool {
|
||||
if value.Expire < f5.GetApp().GetRealSeconds() {
|
||||
wp.refreshflag = true
|
||||
return false
|
||||
}
|
||||
return true
|
||||
})
|
||||
|
||||
if !wp.refreshflag {
|
||||
continue
|
||||
}
|
||||
}
|
||||
url := "https://payservice.kingsome.cn/api/service/refresh"
|
||||
|
||||
@ -432,7 +442,6 @@ func (wp *wxpay) checkAccessToken() {
|
||||
if rspObj.ErrCode == 0 {
|
||||
for _, dataitem := range rspObj.Data {
|
||||
wp.accessTokens.Store(dataitem.GameId, dataitem)
|
||||
|
||||
}
|
||||
}
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user