fix: 优化配置和API处理逻辑
This commit is contained in:
parent
7ab366d5d4
commit
1e75c68984
|
|
@ -50,7 +50,7 @@ func (l *Login) GetToken(ctx context.Context) string {
|
|||
if err != nil {
|
||||
log.Errorf("lsxd get token from redis failed, err: %v", err)
|
||||
}
|
||||
if token != "" /*&& l.checkTokenValid(ctx, token)*/ {
|
||||
if token != "" && l.checkTokenValid(ctx, token) {
|
||||
return token
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue