update GAO logger
This commit is contained in:
+4
-2
@@ -25,8 +25,8 @@ import org.springframework.context.annotation.Lazy;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.util.concurrent.ThreadLocalRandom;
|
||||
import java.util.UUID;
|
||||
import java.util.concurrent.ThreadLocalRandom;
|
||||
|
||||
/// 用户登录服务实现
|
||||
///
|
||||
@@ -95,7 +95,9 @@ public class UserLoginServiceImplement implements UserLoginService, TimiJava {
|
||||
@Override
|
||||
public User getLoginUser() {
|
||||
String token = TimiSpring.getToken();
|
||||
TimiException.required(token, "not found token");
|
||||
if (TimiJava.isEmpty(token)) {
|
||||
return null;
|
||||
}
|
||||
String userId = redisUserToken.get(getUserTokenKey(token));
|
||||
if (TimiJava.isEmpty(userId)) {
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user