提交 c08c90ba 编写于 作者: Chatopera 研发团队's avatar Chatopera 研发团队

https://github.com/chatopera/cskefu/issues/456 enable set login banner as...

https://github.com/chatopera/cskefu/issues/456 enable set login banner as notice with environment variable NOTICE_LOGIN_BANNER
上级 625ba344
...@@ -85,8 +85,8 @@ public class LoginController extends Handler { ...@@ -85,8 +85,8 @@ public class LoginController extends Handler {
@Value("${tongji.baidu.sitekey}") @Value("${tongji.baidu.sitekey}")
private String tongjiBaiduSiteKey; private String tongjiBaiduSiteKey;
@Value("${ads.login.banner}") @Value("${notice.login.banner}")
private String adsLoginBanner; private String noticeLoginBanner;
/** /**
* 登录页面 * 登录页面
...@@ -152,8 +152,10 @@ public class LoginController extends Handler { ...@@ -152,8 +152,10 @@ public class LoginController extends Handler {
view.addObject("tongjiBaiduSiteKey", tongjiBaiduSiteKey); view.addObject("tongjiBaiduSiteKey", tongjiBaiduSiteKey);
} }
if (StringUtils.isNotBlank(adsLoginBanner) && StringUtils.equalsIgnoreCase(adsLoginBanner, "on")) { if (StringUtils.isNotBlank(noticeLoginBanner) && !StringUtils.equalsIgnoreCase(noticeLoginBanner, "off")) {
view.addObject("adsLoginBanner", "on"); view.addObject("noticeLoginBanner", noticeLoginBanner);
} else {
view.addObject("noticeLoginBanner", "off");
} }
return view; return view;
......
...@@ -228,4 +228,4 @@ channel.skype.crm= ...@@ -228,4 +228,4 @@ channel.skype.crm=
# Miscs # Miscs
############################################## ##############################################
# 登陆页面公告 # 登陆页面公告
ads.login.banner=placeholder notice.login.banner=商务洽谈、售后技术支持和云服务发票等 https://dwz.chatopera.com/A51h6m *本提示仅出现于演环境
\ No newline at end of file \ No newline at end of file
...@@ -5,7 +5,19 @@ ...@@ -5,7 +5,19 @@
'|...' '|..|' .||. ||. '|.' '|..'|' '|...' '|.' '|...' '|...' .||. ||. '|.' '|...' .||. '|...' '|..|' .||. ||. '|.' '|..'|' '|...' '|.' '|...' '|...' .||. ||. '|.' '|...' .||.
==================== Powered by Chatopera Inc. ================= ==================== Powered by Chatopera Inc. =================
春松客服: 多渠道智能客服 v${git.build.version} build ${git.commit.id.abbrev} 春松客服: 越是重视客户服务,越是好的企业 v${git.build.version} build ${git.commit.id.abbrev}
版权所有 © 北京华夏春松科技有限公司️ https://www.chatopera.com/ 版权所有 © 北京华夏春松科技有限公司️ https://www.chatopera.com/
商业许可授权联系 info@chatopera.com 商业许可授权联系商务顾问 https://dwz.chatopera.com/A51h6m
第一次安装后,参考系统初始化文档,对系统进行初始化,再使用!!!
https://docs.chatopera.com/products/cskefu/initialization.html
使用过程中,进行维护:备份、回复、升级等,参考文档
https://docs.chatopera.com/products/cskefu/osc/maintainence.html
春松客服定制开发技能培训:春松客服大讲堂
https://docs.chatopera.com/products/cskefu/osc/training.html
开源社区反馈建议& 提交 BUG
https://github.com/chatopera/cskefu/issues
---------------------------------------------------------------- ----------------------------------------------------------------
\ No newline at end of file
...@@ -51,6 +51,9 @@ html ...@@ -51,6 +51,9 @@ html
})(); })();
} }
body.login body.login
if noticeLoginBanner != "off"
div(style="width: 100%; height:50px; background-color: #2bd99e; padding-top: 0px;display: flex;")
p(style="color: white;margin: auto; font-size: 15px")= noticeLoginBanner
.login-box .login-box
.login-logo .login-logo
a a
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册