Index: ssts-web/src/main/webapp/logonSSOForBjdxzlyy.jsp =================================================================== diff -u -r27144 -r27145 --- ssts-web/src/main/webapp/logonSSOForBjdxzlyy.jsp (.../logonSSOForBjdxzlyy.jsp) (revision 27144) +++ ssts-web/src/main/webapp/logonSSOForBjdxzlyy.jsp (.../logonSSOForBjdxzlyy.jsp) (revision 27145) @@ -23,9 +23,10 @@ String salt = "201911070087@ABC"; System.out.println("userName=" + userName + " time=" + time + " md5=" + md5); if(StringUtils.isNotBlank(userName) || StringUtils.isNotBlank(time) || StringUtils.isNotBlank(md5)){ + session.removeAttribute("message"); try{ // 请求时间 - SimpleDateFormat sdf = new SimpleDateFormat("yyyy:MM:dd HH:mm:ss"); + SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); Date d1 = sdf.parse(time); long s1 = d1.getTime(); // 服务器当前时间 @@ -45,7 +46,8 @@ UserManager userManager=(UserManager)SpringBeanManger.getBean("userManager"); User user=userManager.getFirst("name", userName); if(user==null){ - message.add("用户:"+userName+"不存在"); + message.add("账号"+userName+"不存在"); + session.setAttribute("message", "账号"+userName+"不存在"); }else{ pageContext.setAttribute("barcode", user.getBarcode()); }