Index: ssts-web/src/main/webapp/logonSSOForGzsdbrmyy.jsp =================================================================== diff -u --- ssts-web/src/main/webapp/logonSSOForGzsdbrmyy.jsp (revision 0) +++ ssts-web/src/main/webapp/logonSSOForGzsdbrmyy.jsp (revision 32237) @@ -0,0 +1,194 @@ +<%@page import="com.forgon.security.model.User"%> +<%@page import="com.forgon.disinfectsystem.common.CssdUtils"%> +<%@page import="com.forgon.security.service.UserManager"%> +<%@ page contentType="text/html; charset=UTF-8" %> +<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> +<%@page import="com.forgon.tools.SpringBeanManger"%> +<%@page import="com.forgon.tools.Constants"%> +<%@page import="net.sf.json.JSONObject" %> +<%@page import="java.io.File" %> +<%@page import="java.util.ArrayList" %> +<%@page import="org.apache.commons.lang.StringUtils"%> +<%@page import="com.forgon.directory.model.LoginInfo"%> +<%@page import="com.forgon.disinfectsystem.datasynchronization.dao.gzsdbrmyy.SSOAuthenticationDao"%> +<%@page import="com.forgon.disinfectsystem.datasynchronization.dao.gzsdbrmyy.DatasyncConstant"%> + +<% +ArrayList message = new ArrayList(); +String token = request.getParameter("_fimsToken"); +if(StringUtils.isNotBlank(token)){ + try{ + SSOAuthenticationDao ssoAuthenticationDao = (SSOAuthenticationDao)SpringBeanManger.getBean("ssoAuthenticationDao"); + String userName = ssoAuthenticationDao.authentication(DatasyncConstant.TOKEN_VALIDATE_URL,DatasyncConstant.SYS_CODE, token); + if(userName != null){ + UserManager userManager=(UserManager)SpringBeanManger.getBean("userManager"); + User user = userManager.getFirst("name", userName); + if(user==null){ + message.add("用户不存在"); + }else{ + session.setAttribute("barcode", user.getBarcode()); + } + } + } catch (Exception e) { + message.add(e.getMessage()); + } +} +pageContext.setAttribute("message", message); + +String companyName = CssdUtils.getSystemSetConfigByName("companyName"); +String companyNameStr = ""; +if(companyName == null || companyName.equals("forgon")){ + companyNameStr = "©2021 广州孚峻信息技术有限公司 版权所有"; +}else if(companyName.equals("dingxiang")){ + companyNameStr = "©2021 广州丁香软件有限公司 版权所有"; +} +session.setAttribute("companyName", companyNameStr); +String project = CssdUtils.getConfigProperty("project"); +session.setAttribute("profile", project); + +String imgPath = "disinfectsystem/config/" + project + "/img/logo_" + project +".png"; +File file = new File(application.getRealPath("/") + imgPath); +if(file.exists()){ + request.setAttribute("logoPath",imgPath); +}else{ + if(companyName == null || companyName.equals("forgon")){ + request.setAttribute("logoPath","themes/portalPage/img/logo_Forgon.png"); + }else if(companyName.equals("dingxiang")){ + request.setAttribute("logoPath","themes/portalPage/img/logo_dingxiangsoft.png"); + } +} + +%> + +
+ + + + + + +