|
|
@@ -5,8 +5,8 @@ import (
|
|
|
"sync"
|
|
|
"time"
|
|
|
|
|
|
- "git.qianqiusoft.com/qianqiusoft/light-apiengine/entitys"
|
|
|
"git.qianqiusoft.com/qianqiusoft/light-apiengine/config"
|
|
|
+ "git.qianqiusoft.com/qianqiusoft/light-apiengine/entitys"
|
|
|
)
|
|
|
|
|
|
type TokenStore struct {
|
|
|
@@ -62,7 +62,7 @@ func (t *TokenStore) Refresh(key string) {
|
|
|
}
|
|
|
|
|
|
func (t *TokenStore) startTokenCheckProcess() {
|
|
|
- autoRefresh := config.AppConfig.GetBool("auto_refresh", false)
|
|
|
+ autoRefresh := config.AppConfig.AutoRefresh
|
|
|
if !autoRefresh {
|
|
|
return
|
|
|
}
|