Commit 674da1c5 by s_guodong

update

parent 9263beb0
...@@ -16,6 +16,7 @@ public class LoginConstants { ...@@ -16,6 +16,7 @@ public class LoginConstants {
//用户ID //用户ID
public static final String usrinr= "usrinr"; public static final String usrinr= "usrinr";
public static final String userid= "userid";
public static final String cifno= "cifno"; public static final String cifno= "cifno";
public static final String ptyinr= "ptyinr"; public static final String ptyinr= "ptyinr";
public static final String errorText= "errorText"; public static final String errorText= "errorText";
......
package com.ceb.gjjs.mda.util; package com.ceb.gjjs.mda.util;
import com.brilliance.mda.runtime.mda.driver.MdaEnv; import com.brilliance.mda.runtime.mda.driver.MdaEnv;
import com.brilliance.mda.support.td.BDAuthInfo;
/** /**
* @author zh * @author zh
...@@ -8,22 +9,29 @@ import com.brilliance.mda.runtime.mda.driver.MdaEnv; ...@@ -8,22 +9,29 @@ import com.brilliance.mda.runtime.mda.driver.MdaEnv;
*/ */
public class LoginData { public class LoginData {
public static Object getLoginData(String param) { public static Object getLoginData(String param) {
if(LoginConstants.usrinr.equals(param)) if (LoginConstants.usrinr.equals(param)) {
return MdaEnv.getAuthInfo().getUsrInr(); return MdaEnv.getAuthInfo().getUsrInr();
else if(LoginConstants.errorText.equals(param)) } else if (LoginConstants.errorText.equals(param)) {
return MdaEnv.getAuthInfo().getErrorText(); return MdaEnv.getAuthInfo().getErrorText();
else if(LoginConstants.ncid.equals(param)) } else if (LoginConstants.ncid.equals(param)) {
return MdaEnv.getAuthInfo().getPtyInr(); return MdaEnv.getAuthInfo().getPtyInr();
else if(LoginConstants.CN.equals(param)) } else if (LoginConstants.CN.equals(param)) {
return MdaEnv.getAuthInfo().getCn(); return MdaEnv.getAuthInfo().getCn();
else if(LoginConstants.__terminalType.equals(param)) } else if (LoginConstants.__terminalType.equals(param)) {
return MdaEnv.getAuthInfo().getTerminalType(); return MdaEnv.getAuthInfo().getTerminalType();
else if(LoginConstants.algorithm.equals(param)) } else if (LoginConstants.algorithm.equals(param)) {
return MdaEnv.getAuthInfo().getAlgorithm(); return MdaEnv.getAuthInfo().getAlgorithm();
else if(LoginConstants.CERT.equals(param)) } else if (LoginConstants.CERT.equals(param)) {
return MdaEnv.getAuthInfo().getCert(); return MdaEnv.getAuthInfo().getCert();
else if(LoginConstants.needSign.equals(param)) } else if (LoginConstants.needSign.equals(param)) {
return MdaEnv.getAuthInfo().getNeedSign(); return MdaEnv.getAuthInfo().getNeedSign();
} else if (LoginConstants.cifno.equals(param)) {
BDAuthInfo authInfo = (BDAuthInfo) MdaEnv.getAuthInfo();
return authInfo.getCifno();
} else if (LoginConstants.userid.equals(param)) {
BDAuthInfo authInfo = (BDAuthInfo) MdaEnv.getAuthInfo();
return authInfo.getUserid();
}
return null; return null;
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment