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; }