|
@@ -49,6 +49,7 @@ import java.util.Base64;
|
|
|
import java.util.Calendar;
|
|
|
import java.util.Locale;
|
|
|
import java.util.Map;
|
|
|
+import java.util.Objects;
|
|
|
import java.util.UUID;
|
|
|
import java.util.concurrent.TimeUnit;
|
|
|
|
|
@@ -97,6 +98,9 @@ public class TokenController extends BaseController {
|
|
|
if (authUser != null) {
|
|
|
// 获取用户信息
|
|
|
SysUser sysUser = userService.get(authUser.getUserId());
|
|
|
+ if (Objects.isNull(sysUser)) {
|
|
|
+ return null;
|
|
|
+ }
|
|
|
// 获取用户机构信息
|
|
|
sysUser.setTenantId(userService.getTenantByClient(authUser.getUserId(),authUser.getClientId()));
|
|
|
return sysUser;
|