From bc7e1a712fcf506dfbc1e000e81bfaa1c66f95f7 Mon Sep 17 00:00:00 2001 From: wxc <191104855@qq.com> Date: Wed, 27 Aug 2025 17:16:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B1=80=E9=95=BF=E4=BF=A1=E7=AE=B1=20250827?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/biutag/lan/controller/MailController.java | 3 +++ .../com/biutag/lan/service/impl/SystemLoginServiceImpl.java | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/mailbox-lan/src/main/java/com/biutag/lan/controller/MailController.java b/mailbox-lan/src/main/java/com/biutag/lan/controller/MailController.java index 1843301..5e6fb4d 100644 --- a/mailbox-lan/src/main/java/com/biutag/lan/controller/MailController.java +++ b/mailbox-lan/src/main/java/com/biutag/lan/controller/MailController.java @@ -73,6 +73,9 @@ public class MailController { @SaCheckPermission("mail:add") @PostMapping("add") public AjaxResult add(@RequestBody @Valid MailOuter mail) { + if ("厅长信箱".equals(mail.getSource())) { + throw new RuntimeException("厅长信箱不支持自建信件"); + } return AjaxResult.success(mailService.save(mail)); } diff --git a/mailbox-lan/src/main/java/com/biutag/lan/service/impl/SystemLoginServiceImpl.java b/mailbox-lan/src/main/java/com/biutag/lan/service/impl/SystemLoginServiceImpl.java index 4e7ec4f..dc4b07f 100644 --- a/mailbox-lan/src/main/java/com/biutag/lan/service/impl/SystemLoginServiceImpl.java +++ b/mailbox-lan/src/main/java/com/biutag/lan/service/impl/SystemLoginServiceImpl.java @@ -102,9 +102,9 @@ public class SystemLoginServiceImpl implements ISystemLoginService { public SystemLoginVo login(PoliceUserLoginsValidate loginsValidate) { String hostIp = IpUtils.getIpAddress(); Boolean lock = RedisUtil.get(String.format("login:lock:%s", hostIp)); -// if (Objects.nonNull(lock) && lock) { -// throw new LoginException(ErrorEnum.LOGIN_ACCOUNT_ERROR.getCode(), "该IP已被锁定,请稍后再试!"); -// } + if (Objects.nonNull(lock) && lock) { + throw new LoginException(ErrorEnum.LOGIN_ACCOUNT_ERROR.getCode(), "该IP已被锁定,请稍后再试!"); + } String empNo = loginsValidate.getEmpNo(); String password = loginsValidate.getPassword(); String captchaStatus = YmlUtils.get("like.captcha.status");