Index: ssts-web/src/main/webapp/logonSSOForGyey.jsp =================================================================== diff -u -r20598 -r27095 --- ssts-web/src/main/webapp/logonSSOForGyey.jsp (.../logonSSOForGyey.jsp) (revision 20598) +++ ssts-web/src/main/webapp/logonSSOForGyey.jsp (.../logonSSOForGyey.jsp) (revision 27095) @@ -23,20 +23,23 @@ String RESULT_SYSTEM_NO=json.optString("RESULT_SYSTEM_NO"); if(RESULT_SYSTEM_NO.trim().equals("true")){ JSONObject RESULT_CONTENT=json.optJSONObject("RESULT_CONTENT"); - userName=RESULT_CONTENT.optString("USER_LOGIN_NAME"); - if(userName==(null)){ - message.add("xml的格式有误"); - } - else if(userName.equals("")){ - message.add("userName不能为空"); - } + userName=RESULT_CONTENT.optString("USER_CODE"); + if(userName == null || userName.equals("")){ + userName=RESULT_CONTENT.optString("USER_LOGIN_NAME"); + } + if(userName == null){ + message.add("xml的格式有误"); + } + else if(userName.equals("")){ + message.add("userName不能为空"); + } } else{ message.add("xml的格式有误"); } } catch(Exception e) { - message.add("xml的格式有误"); + message.add("xml的格式有误"); } if(StringUtils.isNotBlank(userName)){ @@ -45,7 +48,7 @@ if(user==null){ message.add("用户:"+userName+"不存在"); }else{ - pageContext.setAttribute("barcode", user.getBarcode()); + pageContext.setAttribute("barcode", user.getBarcode()); } } }else{