From fbced9a56f316dbe6b3bb07047e108398d587f60 Mon Sep 17 00:00:00 2001 From: wanggeng <450292408@qq.com> Date: Tue, 25 Jan 2022 16:47:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86=E9=A6=96=E9=A1=B5=E5=AE=A2?= =?UTF-8?q?=E6=88=B7=E7=AB=AF=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 2 +- .../route/index/CustomIndexPageRouteController.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 47d7418..5786604 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ FROM openjdk:8u292-jre-buster ARG JAR_FILE=/target/*.jar COPY ${JAR_FILE} smart-city-usercenter.jar -ENTRYPOINT ["java","-jar","-Dspring.profiles.active=test","/smart-city-usercenter.jar"] +ENTRYPOINT ["java","-jar","-Dspring.profiles.active=prod","/smart-city-usercenter.jar"] # 时区问题 RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone diff --git a/src/main/java/cn/com/tenlion/usercenter/controller/route/index/CustomIndexPageRouteController.java b/src/main/java/cn/com/tenlion/usercenter/controller/route/index/CustomIndexPageRouteController.java index 6723d90..602ec4e 100644 --- a/src/main/java/cn/com/tenlion/usercenter/controller/route/index/CustomIndexPageRouteController.java +++ b/src/main/java/cn/com/tenlion/usercenter/controller/route/index/CustomIndexPageRouteController.java @@ -59,7 +59,7 @@ public class CustomIndexPageRouteController { List roleIds = securityComponent.listRoleIds(); if (securityComponent.isAdmin(roleIds)) { List oAuth2ClientSimpleDTOs = oauth2ClientService.listSimple(); - oAuth2ClientSimpleDTOs.add(0, getUserCenter()); + oAuth2ClientSimpleDTOs.add(getUserCenter()); return oAuth2ClientSimpleDTOs; } // 自己角色的菜单 @@ -78,7 +78,7 @@ public class CustomIndexPageRouteController { } List oAuth2ClientSimpleDTOs = oauth2ClientService.listSimpleByMenuIdsAndEnvironment(rootMenuIds, IOAuth2ClientService.OAUTH_CLIENT_ENVIRONMENT_FORMAL); if (hasUserCenter(rootMenuIds)) { - oAuth2ClientSimpleDTOs.add(0, getUserCenter()); + oAuth2ClientSimpleDTOs.add(getUserCenter()); } return oAuth2ClientSimpleDTOs; }