处理新系统没有任何系统配置信息的导致的问题
This commit is contained in:
parent
24e28829b0
commit
c8fc72b3d6
@ -36,27 +36,27 @@ public class OAuthServiceImpl implements IOAuthService {
|
||||
// 服务地址
|
||||
pageParams.put(IUserCenterConst.SERVER_URL, serverProperties.getUrl());
|
||||
// 系统LOGO
|
||||
pageParams.put(IUserCenterConst.SYSTEM_LOGO, config.get(IUserCenterConst.SYSTEM_LOGO).toString());
|
||||
pageParams.put(IUserCenterConst.SYSTEM_LOGO, config.isEmpty() ? null : config.get(IUserCenterConst.SYSTEM_LOGO));
|
||||
// 背景图片
|
||||
pageParams.put(IUserCenterConst.LOGIN_BACKGROUND_IMAGES, config.get(IUserCenterConst.LOGIN_BACKGROUND_IMAGES).toString());
|
||||
pageParams.put(IUserCenterConst.LOGIN_BACKGROUND_IMAGES, config.isEmpty() ? null : config.get(IUserCenterConst.LOGIN_BACKGROUND_IMAGES));
|
||||
// 系统标题
|
||||
pageParams.put(IUserCenterConst.SYSTEM_TITLE, config.get(IUserCenterConst.SYSTEM_TITLE).toString());
|
||||
pageParams.put(IUserCenterConst.SYSTEM_TITLE, config.isEmpty() ? null : config.get(IUserCenterConst.SYSTEM_TITLE));
|
||||
// 系统标题大小,默认26
|
||||
pageParams.put(IUserCenterConst.SYSTEM_TITLE_SIZE, Integer.parseInt(config.get(IUserCenterConst.SYSTEM_TITLE_SIZE).toString()));
|
||||
pageParams.put(IUserCenterConst.SYSTEM_TITLE_SIZE, config.isEmpty() ? null : Integer.parseInt(config.get(IUserCenterConst.SYSTEM_TITLE_SIZE).toString()));
|
||||
// 系统子标题
|
||||
pageParams.put(IUserCenterConst.SYSTEM_SUB_TITLE, config.get(IUserCenterConst.SYSTEM_SUB_TITLE).toString());
|
||||
pageParams.put(IUserCenterConst.SYSTEM_SUB_TITLE, config.isEmpty() ? null : config.get(IUserCenterConst.SYSTEM_SUB_TITLE));
|
||||
// 系统子标题大小,默认16
|
||||
pageParams.put(IUserCenterConst.SYSTEM_SUB_TITLE_SIZE, Integer.parseInt(config.get(IUserCenterConst.SYSTEM_SUB_TITLE_SIZE).toString()));
|
||||
pageParams.put(IUserCenterConst.SYSTEM_SUB_TITLE_SIZE, config.isEmpty() ? null : Integer.parseInt(config.get(IUserCenterConst.SYSTEM_SUB_TITLE_SIZE).toString()));
|
||||
// 版权年份
|
||||
pageParams.put(IUserCenterConst.COPY_RIGHT_YEAR, config.get(IUserCenterConst.COPY_RIGHT_YEAR).toString());
|
||||
pageParams.put(IUserCenterConst.COPY_RIGHT_YEAR, config.isEmpty() ? null : config.get(IUserCenterConst.COPY_RIGHT_YEAR));
|
||||
// 版权所属
|
||||
pageParams.put(IUserCenterConst.COPY_LEFT, config.get(IUserCenterConst.COPY_LEFT).toString());
|
||||
pageParams.put(IUserCenterConst.COPY_LEFT, config.isEmpty() ? null : config.get(IUserCenterConst.COPY_LEFT));
|
||||
// 官方链接
|
||||
pageParams.put(IUserCenterConst.OFFICIAL_URL, config.get(IUserCenterConst.OFFICIAL_URL).toString());
|
||||
pageParams.put(IUserCenterConst.OFFICIAL_URL, config.isEmpty() ? null : config.get(IUserCenterConst.OFFICIAL_URL));
|
||||
// 开启验证码
|
||||
pageParams.put(ISystemConstant.VERIFICATION_CODE, config.get(ISystemConstant.VERIFICATION_CODE).toString());
|
||||
pageParams.put(ISystemConstant.VERIFICATION_CODE, config.isEmpty() ? null : config.get(ISystemConstant.VERIFICATION_CODE));
|
||||
// 登录框位置
|
||||
pageParams.put(IUserCenterConst.LOGIN_BOX_POSITION, config.get(IUserCenterConst.LOGIN_BOX_POSITION).toString());
|
||||
pageParams.put(IUserCenterConst.LOGIN_BOX_POSITION, config.isEmpty() ? null : config.get(IUserCenterConst.LOGIN_BOX_POSITION));
|
||||
// 登录表单action
|
||||
pageParams.put(IUserCenterConst.LOGIN_FORM_ACTION, baseProperties.getLoginProcess().startsWith("/") ? baseProperties.getLoginProcess().substring(1) : baseProperties.getLoginProcess());
|
||||
return pageParams;
|
||||
|
Loading…
Reference in New Issue
Block a user