adjust
This commit is contained in:
parent
a5a4645ff2
commit
6f039a0d8d
@ -394,7 +394,7 @@ func (wp *wxpay) checkAccessToken() {
|
||||
if f5.IsOnlineEnv() {
|
||||
wp.gamesGoods.Range(func(gameid int64, value map[int64]int64) bool {
|
||||
cfg, _ := wp.accessTokens.Load(gameid)
|
||||
if wp.refreshflag || (cfg != nil && cfg.Expire < f5.GetApp().GetRealSeconds()) {
|
||||
if wp.refreshflag || (cfg != nil && cfg.Expire <= f5.GetApp().GetRealSeconds()) {
|
||||
wp.freshAccessToken(gameid)
|
||||
}
|
||||
return true
|
||||
@ -402,7 +402,7 @@ func (wp *wxpay) checkAccessToken() {
|
||||
} else {
|
||||
if !wp.refreshflag {
|
||||
wp.accessTokens.Range(func(key int64, value TokenInfo) bool {
|
||||
if value.Expire < f5.GetApp().GetRealSeconds() {
|
||||
if value.Expire <= f5.GetApp().GetRealSeconds() {
|
||||
wp.refreshflag = true
|
||||
return false
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user