|
|
|
@ -81,6 +81,7 @@ public class CommonController {
|
|
|
|
|
// 校验通过
|
|
|
|
|
Map<String, Object> claims = new HashMap<>();
|
|
|
|
|
claims.put("id", user.getId());
|
|
|
|
|
ThreadLocalUtil.set(user.getId());
|
|
|
|
|
claims.put("account", userLoginByAccountDTO.getAccount());
|
|
|
|
|
// 获取token
|
|
|
|
|
String token = JwtUtil.genToken(claims);
|
|
|
|
|