Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gjjs-bd-common
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
s_guodong
gjjs-bd-common
Commits
056521d9
Commit
056521d9
authored
Jul 06, 2023
by
zhanghou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改LoginConstants类的位置,修改Platform.getLoginData()方法逻辑的实现位置
parent
02b792f5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
15 deletions
+24
-15
Platform.java
...iness/src/main/java/com/ceb/gjjs/mda/global/Platform.java
+2
-12
LoginConstants.java
...s/src/main/java/com/ceb/gjjs/mda/util/LoginConstants.java
+1
-1
LoginData.java
...siness/src/main/java/com/ceb/gjjs/mda/util/LoginData.java
+19
-0
AuthInterceptor.java
...s/src/main/java/com/ceb/gjjs/mda/web/AuthInterceptor.java
+1
-1
AuthorizationRequestFilter.java
...java/com/ceb/gjjs/mda/web/AuthorizationRequestFilter.java
+1
-1
No files found.
gjjs-bd-business/src/main/java/com/ceb/gjjs/mda/global/Platform.java
View file @
056521d9
...
@@ -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
)
{
...
...
gjjs-bd-business/src/main/java/com/ceb/gjjs/mda/
globa
l/LoginConstants.java
→
gjjs-bd-business/src/main/java/com/ceb/gjjs/mda/
uti
l/LoginConstants.java
View file @
056521d9
package
com
.
ceb
.
gjjs
.
mda
.
globa
l
;
package
com
.
ceb
.
gjjs
.
mda
.
uti
l
;
/**
/**
* 登录使用的静态参数
* 登录使用的静态参数
...
...
gjjs-bd-business/src/main/java/com/ceb/gjjs/mda/util/LoginData.java
0 → 100644
View file @
056521d9
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
;
}
}
gjjs-bd-business/src/main/java/com/ceb/gjjs/mda/web/AuthInterceptor.java
View file @
056521d9
...
@@ -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.
globa
l.LoginConstants
;
import
com.ceb.gjjs.mda.
uti
l.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
;
...
...
gjjs-bd-business/src/main/java/com/ceb/gjjs/mda/web/AuthorizationRequestFilter.java
View file @
056521d9
...
@@ -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.
globa
l.LoginConstants
;
import
com.ceb.gjjs.mda.
uti
l.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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment