fix: 优化配置和API处理逻辑

This commit is contained in:
renzhiyuan 2026-01-15 14:56:43 +08:00
parent 7ab366d5d4
commit 1e75c68984
1 changed files with 1 additions and 1 deletions

View File

@ -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
}