update 优化 将空 catch 块形参重命名为 ignored

2.X
疯狂的狮子li 2 years ago
parent 98c4c2cd12
commit 98a63bf3b2

@ -93,7 +93,7 @@ public class SysLoginService {
LoginUser loginUser = LoginHelper.getLoginUser();
StpUtil.logout();
recordLogininfor(loginUser.getUsername(), Constants.LOGOUT, MessageUtils.message("user.logout.success"));
} catch (NotLoginException e) {
} catch (NotLoginException ignored) {
}
}

@ -78,7 +78,7 @@ public class SysUserOnlineController extends BaseController {
public R<Void> forceLogout(@PathVariable String tokenId) {
try {
StpUtil.kickoutByTokenValue(tokenId);
} catch (NotLoginException e) {
} catch (NotLoginException ignored) {
}
return R.ok();
}

Loading…
Cancel
Save