From 733433e7220e8178d527c34f03dcd5b84e826b7d Mon Sep 17 00:00:00 2001 From: sin Date: Mon, 20 May 2019 14:04:28 +0800 Subject: [PATCH] =?UTF-8?q?-=20=E4=BC=98=E5=8C=96=E4=BA=86=E4=B8=80?= =?UTF-8?q?=E4=B8=8B=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cn/iocoder/mall/admin/service/OAuth2ServiceImpl.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/system/system-service-impl/src/main/java/cn/iocoder/mall/admin/service/OAuth2ServiceImpl.java b/system/system-service-impl/src/main/java/cn/iocoder/mall/admin/service/OAuth2ServiceImpl.java index 69f180be0..595ac0e23 100644 --- a/system/system-service-impl/src/main/java/cn/iocoder/mall/admin/service/OAuth2ServiceImpl.java +++ b/system/system-service-impl/src/main/java/cn/iocoder/mall/admin/service/OAuth2ServiceImpl.java @@ -114,7 +114,9 @@ public class OAuth2ServiceImpl implements OAuth2Service { } private OAuth2AccessTokenDO createOAuth2AccessToken(Integer userId, Integer userType, String refreshToken) { - OAuth2AccessTokenDO accessToken = new OAuth2AccessTokenDO().setId(generateAccessToken()) + OAuth2AccessTokenDO accessToken + = new OAuth2AccessTokenDO() + .setId(generateAccessToken()) .setRefreshToken(refreshToken) .setUserId(userId).setUserType(userType) .setExpiresTime(new Date(System.currentTimeMillis() + accessTokenExpireTimeMillis)) @@ -124,7 +126,9 @@ public class OAuth2ServiceImpl implements OAuth2Service { } private OAuth2RefreshTokenDO createOAuth2RefreshToken(Integer userId, Integer userType) { - OAuth2RefreshTokenDO refreshToken = new OAuth2RefreshTokenDO().setId(generateRefreshToken()) + OAuth2RefreshTokenDO refreshToken + = new OAuth2RefreshTokenDO() + .setId(generateRefreshToken()) .setUserId(userId).setUserType(userType) .setExpiresTime(new Date(System.currentTimeMillis() + refreshTokenExpireTimeMillis)) .setValid(true);