From 310d87e851448472fe25a1d4dc5bf38a19a49e04 Mon Sep 17 00:00:00 2001 From: aoshiguchen <1052045476@qq.com> Date: Fri, 10 Mar 2023 10:06:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=90=86=E6=9C=8D=E5=8A=A1=E7=AB=AFso?= =?UTF-8?q?lon=E5=8C=96=E6=94=B9=E9=80=A0,rest=E6=8E=A5=E5=8F=A3=E3=80=81?= =?UTF-8?q?=E9=9D=99=E6=80=81=E8=B5=84=E6=BA=90=E6=9C=8D=E5=8A=A1=E8=B0=83?= =?UTF-8?q?=E9=80=9A=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../asgc/neutrino/proxy/server/service/PortMappingService.java | 1 - neutrino-proxy-server/src/main/resources/app.yml | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/neutrino-proxy-server/src/main/java/fun/asgc/neutrino/proxy/server/service/PortMappingService.java b/neutrino-proxy-server/src/main/java/fun/asgc/neutrino/proxy/server/service/PortMappingService.java index 954a1222..b5b09f70 100644 --- a/neutrino-proxy-server/src/main/java/fun/asgc/neutrino/proxy/server/service/PortMappingService.java +++ b/neutrino-proxy-server/src/main/java/fun/asgc/neutrino/proxy/server/service/PortMappingService.java @@ -199,7 +199,6 @@ public class PortMappingService implements Lifecycle { LicenseDO licenseDO = licenseMapper.findById(portMappingDO.getLicenseId()); ParamCheckUtil.checkNotNull(licenseDO, ExceptionConstant.LICENSE_NOT_EXIST); if (!SystemContextHolder.isAdmin()) { - // 临时处理,如果当前用户不是管理员,则操作userId不能为1 ParamCheckUtil.checkExpression(!licenseDO.getUserId().equals(1), ExceptionConstant.NO_PERMISSION_VISIT); } diff --git a/neutrino-proxy-server/src/main/resources/app.yml b/neutrino-proxy-server/src/main/resources/app.yml index 4b0d7852..07d64874 100644 --- a/neutrino-proxy-server/src/main/resources/app.yml +++ b/neutrino-proxy-server/src/main/resources/app.yml @@ -1,5 +1,5 @@ server: - port: 8081 + port: 8888 neutrino: proxy: