diff --git a/src/main/java/com/xkrs/common/account/TokenAuthenticationService.java b/src/main/java/com/xkrs/common/account/TokenAuthenticationService.java index 3715e4a..c2cda0d 100644 --- a/src/main/java/com/xkrs/common/account/TokenAuthenticationService.java +++ b/src/main/java/com/xkrs/common/account/TokenAuthenticationService.java @@ -3,6 +3,7 @@ package com.xkrs.common.account; import com.xkrs.common.encapsulation.OutputEncapsulation; import com.xkrs.common.encapsulation.PromptMessageEnum; import com.xkrs.model.entity.SysUserEntity; +import com.xkrs.utilsnew.SysUserConvertUtils; import io.jsonwebtoken.Claims; import io.jsonwebtoken.Jwts; import io.jsonwebtoken.security.Keys; @@ -80,7 +81,7 @@ public class TokenAuthenticationService { // 签名设置 .signWith(key).compact(); map.put("token", jwt); - map.put("user", sysUserEntity); + map.put("user", SysUserConvertUtils.convert(sysUserEntity)); // 将 JWT 写入 body PrintWriter out = null; try {