This commit is contained in:
caozehui
2025-01-23 15:46:34 +08:00
parent c374b4e438
commit 1cc1a9ecf2

View File

@@ -74,7 +74,7 @@ public class AuthController extends BaseController {
if (user == null) {
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, UserValidMessage.LOGIN_FAILED);
} else {
String tokenStr = JwtUtil.generateToken(user.getId());
String tokenStr = JwtUtil.getAccessToken(user.getId());
Token token = new Token();
token.setAccessToken(tokenStr);
Map<String, Object> map = new HashMap<>();