From 0cbf69f888f2898f256dbdf317f1d19bd0385e7a Mon Sep 17 00:00:00 2001 From: xinyb_ <xin0322> Date: 星期一, 24 五月 2021 16:10:59 +0800 Subject: [PATCH] 调整系统过期的界面 --- WebRoot/login.jsp | 15 +++++++++------ 1 files changed, 9 insertions(+), 6 deletions(-) diff --git a/WebRoot/login.jsp b/WebRoot/login.jsp index c8dbcce..617ef8e 100644 --- a/WebRoot/login.jsp +++ b/WebRoot/login.jsp @@ -21,7 +21,7 @@ <%@page import="eu.bitwalker.useragentutils.UserAgent"%> <%@page import="com.yc.sdk.weixinmp.util.UserAgentUtil"%> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"> -<% +<% String dsPath = request.getServletContext().getRealPath("/") +"WEB-INF"+File.separator+"classes"+File.separator+"dataSource"+File.separator+"_dataSource.xml"; Calendar date = Calendar.getInstance(); int year = date.get(Calendar.YEAR); @@ -58,10 +58,13 @@ MultiDataSource multiDataSource = (MultiDataSource) FactoryBean.getBean("multiDataSource"); //multiDataSource.refreshDataSource(null, domain) ; //鍏堝埛鏂版湰鏈虹殑鏁版嵁婧�(鍙埛鏂� domain 鏁版嵁婧愶紝鍥犱负鏈夋椂鍊欐柊鍔犱簡绯荤粺锛岃閲嶅惎tomcat鏈嶅姟锛岄潪甯歌�楁椂) ,added by johns wang,2018-12-03 list = MultiDataSource.getDataSourceMapsByDomainByShowInLoginPage(domain) ; - if(list != null && list.size()==1){ - String sysType=(String)list.get(0).getSystemType(); - iscltSN=list.get(0).isSaas()?1:0; - Integer expiredDays=(list.get(0).getExpiredDays() ==null?null:(Integer)list.get(0).getExpiredDays()) ;//杩囨湡澶╂暟锛歯ull鎴栬礋鏁拌〃绀烘湭杩囨湡锛屾鏁拌〃绀哄凡杩囨湡 + Integer expiredDays=1; + String sysType=""; + if(list != null && list.size()>0) { + sysType = (String) list.get(0).getSystemType(); + iscltSN = list.get(0).isSaas() ? 1 : 0; + expiredDays = (list.get(0).getExpiredDays() == null ? null : (Integer) list.get(0).getExpiredDays());//杩囨湡澶╂暟锛歯ull鎴栬礋鏁拌〃绀烘湭杩囨湡锛屾鏁拌〃绀哄凡杩囨湡 + } if (expiredDays != null && expiredDays.intValue() > 0){ %> @@ -128,7 +131,7 @@ menoUrl="宸村+杞欢"; copyRight="OnBus"; } - } + }catch(Exception e){ session.setAttribute(SessionKey.DEMO_REF,SessionKey.DEMO_REF); out.print("<script>alert('璇烽厤缃纭甦emo鏁版嵁婧愶紒');window.location.href='/demo/update.jsp?demoConfig=demo';</script>"); -- Gitblit v1.8.0