From ff8bd09841ebff7cd19f12f31a7ba374bba700d4 Mon Sep 17 00:00:00 2001 From: lidongy <1879087903@qq.com> Date: Tue, 29 Oct 2019 16:32:13 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=BF=98=E8=AE=B0=E6=9B=B4=E6=94=B9?= =?UTF-8?q?=E6=B3=A8=E9=87=8A=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: lidongy <1879087903@qq.com> --- src/main/java/com/fanruan/api/decision/login/LoginKit.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/main/java/com/fanruan/api/decision/login/LoginKit.java b/src/main/java/com/fanruan/api/decision/login/LoginKit.java index 8b6596f..180c0ee 100644 --- a/src/main/java/com/fanruan/api/decision/login/LoginKit.java +++ b/src/main/java/com/fanruan/api/decision/login/LoginKit.java @@ -88,7 +88,6 @@ public class LoginKit { * @param oldJwt 老的token * @param socketIOClient socket客户端 * @param tokenTimeout 设置的超时时长,仅对非保持登录有用,0<= tokenTimeOut <= LoginConfig.LoginTimeOut - * @return 新的token * @throws Exception 异常 */ public static void refreshToken(String oldJwt, long tokenTimeout, SocketIOClient socketIOClient) throws Exception { @@ -102,8 +101,6 @@ public class LoginKit { * @param socketIOClient socket客户端 * @param tokenTimeout 设置的超时时长,仅对非保持登录有用,0<= tokenTimeOut <= LoginConfig.LoginTimeOut * @param res HttpServletResponse - * - * @return 新的token * @throws Exception 异常 */ public static void refreshTokenAndWriteResponse(String oldJwt, long tokenTimeout, SocketIOClient socketIOClient, HttpServletResponse res) throws Exception { From 196606cc35879c38d71ab83356449a2edb551ce1 Mon Sep 17 00:00:00 2001 From: lidongy <1879087903@qq.com> Date: Tue, 29 Oct 2019 18:42:59 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=86=8D=E6=94=B9=E4=B8=80=E4=B8=8B?= =?UTF-8?q?=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: lidongy <1879087903@qq.com> --- src/main/java/com/fanruan/api/decision/login/LoginKit.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/fanruan/api/decision/login/LoginKit.java b/src/main/java/com/fanruan/api/decision/login/LoginKit.java index 180c0ee..2b20db4 100644 --- a/src/main/java/com/fanruan/api/decision/login/LoginKit.java +++ b/src/main/java/com/fanruan/api/decision/login/LoginKit.java @@ -95,12 +95,12 @@ public class LoginKit { } /** - * 刷新用户名对应的token,并输出response + * 刷新用户名对应的token,并将响应利用web工具封装至res * * @param oldJwt 老的token * @param socketIOClient socket客户端 * @param tokenTimeout 设置的超时时长,仅对非保持登录有用,0<= tokenTimeOut <= LoginConfig.LoginTimeOut - * @param res HttpServletResponse + * @param res 刷新后,得到的响应会封装至此HttpServletResponse中 * @throws Exception 异常 */ public static void refreshTokenAndWriteResponse(String oldJwt, long tokenTimeout, SocketIOClient socketIOClient, HttpServletResponse res) throws Exception {