Commit 056521d9 by zhanghou

修改LoginConstants类的位置,修改Platform.getLoginData()方法逻辑的实现位置

parent 02b792f5
...@@ -8,13 +8,9 @@ import com.brilliance.mda.runtime.mda.driver.MdaDriver; ...@@ -8,13 +8,9 @@ import com.brilliance.mda.runtime.mda.driver.MdaDriver;
import com.brilliance.mda.runtime.mda.driver.MdaEnv; import com.brilliance.mda.runtime.mda.driver.MdaEnv;
import com.brilliance.mda.runtime.mda.impl.Argument; import com.brilliance.mda.runtime.mda.impl.Argument;
import com.brilliance.mda.runtime.mda.util.MdaUtils; import com.brilliance.mda.runtime.mda.util.MdaUtils;
import com.brilliance.mda.runtime.request.BaseVO; import com.ceb.gjjs.mda.util.LoginData;
import com.brilliance.mda.support.cache.ICache;
import com.brilliance.mda.support.cache.impl.RedisCache;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import java.util.*; import java.util.*;
...@@ -797,13 +793,7 @@ public class Platform { ...@@ -797,13 +793,7 @@ public class Platform {
} }
public static Object getLoginData(String param) { public static Object getLoginData(String param) {
if(LoginConstants.usrinr.equals(param)) return LoginData.getLoginData(param);
return MdaEnv.getAuthInfo().getUsrInr();
else if(LoginConstants.errorText.equals(param))
return MdaEnv.getAuthInfo().getErrorText();
else if(LoginConstants.ncid.equals(param))
return MdaEnv.getAuthInfo().getPtyInr();
return null;
} }
public static void addEventRule(Object arg1, Object arg2, Object arg3, Object arg4) { public static void addEventRule(Object arg1, Object arg2, Object arg3, Object arg4) {
......
package com.ceb.gjjs.mda.global; package com.ceb.gjjs.mda.util;
/** /**
* 登录使用的静态参数 * 登录使用的静态参数
......
package com.ceb.gjjs.mda.util;
import com.brilliance.mda.runtime.mda.driver.MdaEnv;
/**
* @author zh
* @create 2023-07-06-11:46
*/
public class LoginData {
public static Object getLoginData(String param) {
if(LoginConstants.usrinr.equals(param))
return MdaEnv.getAuthInfo().getUsrInr();
else if(LoginConstants.errorText.equals(param))
return MdaEnv.getAuthInfo().getErrorText();
else if(LoginConstants.ncid.equals(param))
return MdaEnv.getAuthInfo().getPtyInr();
return null;
}
}
...@@ -7,7 +7,7 @@ import com.brilliance.mda.runtime.request.BaseVO; ...@@ -7,7 +7,7 @@ import com.brilliance.mda.runtime.request.BaseVO;
import com.brilliance.mda.support.cache.ICache; import com.brilliance.mda.support.cache.ICache;
import com.brilliance.mda.support.mybatis.DynamicDataSourceContextHolder; import com.brilliance.mda.support.mybatis.DynamicDataSourceContextHolder;
import com.brilliance.mda.support.td.BDAuthInfo; import com.brilliance.mda.support.td.BDAuthInfo;
import com.ceb.gjjs.mda.global.LoginConstants; import com.ceb.gjjs.mda.util.LoginConstants;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.beans.factory.annotation.Qualifier;
......
...@@ -9,7 +9,7 @@ import com.brilliance.mda.support.td.BDAuthInfo; ...@@ -9,7 +9,7 @@ import com.brilliance.mda.support.td.BDAuthInfo;
import com.ceb.gjjs.mda.bo.Usr; import com.ceb.gjjs.mda.bo.Usr;
import com.ceb.gjjs.mda.dao.PtyMapper; import com.ceb.gjjs.mda.dao.PtyMapper;
import com.ceb.gjjs.mda.dao.UsrMapper; import com.ceb.gjjs.mda.dao.UsrMapper;
import com.ceb.gjjs.mda.global.LoginConstants; import com.ceb.gjjs.mda.util.LoginConstants;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.beans.factory.annotation.Qualifier;
......
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