mirror of
https://github.com/chatopera/cosin.git
synced 2025-08-01 16:38:02 +08:00
https://github.com/chatopera/cskefu/issues/456 enable set login banner as notice with environment variable NOTICE_LOGIN_BANNER
This commit is contained in:
parent
625ba34401
commit
c08c90ba7c
@ -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 {
|
|||||||
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=
|
|||||||
# Miscs
|
# Miscs
|
||||||
##############################################
|
##############################################
|
||||||
# 登陆页面公告
|
# 登陆页面公告
|
||||||
ads.login.banner=placeholder
|
notice.login.banner=商务洽谈、售后技术支持和云服务发票等 https://dwz.chatopera.com/A51h6m *本提示仅出现于演环境
|
@ -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
|
||||||
----------------------------------------------------------------
|
----------------------------------------------------------------
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user