Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tax-sys-nacos
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
caoxiaohong
tax-sys-nacos
Commits
d2f005db
Commit
d2f005db
authored
Mar 29, 2025
by
ddx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加cookie返回参数
parent
e582e3ec
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
0 deletions
+17
-0
tax-token/token-common/src/main/java/com/tax/token/thirdService/TokenThirdServiceFactory.java
+9
-0
tax-token/token-common/src/main/java/com/tax/token/thirdService/impl/GetTokenFromEleJsonTax.java
+2
-0
tax-token/token-dao/src/main/java/com/tax/token/mapper/TkTokenMapper.xml
+3
-0
tax-token/token-service/src/main/java/com/tax/token/service/impl/TkTokenServiceImpl.java
+3
-0
No files found.
tax-token/token-common/src/main/java/com/tax/token/thirdService/TokenThirdServiceFactory.java
View file @
d2f005db
...
...
@@ -123,6 +123,15 @@ public class TokenThirdServiceFactory{
}
}
public
static
String
getLoginType
(
Map
<
String
,
Object
>
result
){
if
(
result
!=
null
&&
null
!=
result
.
get
(
"loginType"
)){
String
loginType
=
String
.
valueOf
(
result
.
get
(
"loginType"
));
return
loginType
;
}
else
{
return
null
;
}
}
public
static
String
getAuthCode
(
Map
<
String
,
Object
>
result
){
if
(
result
!=
null
&&
null
!=
result
.
get
(
"authCode"
)){
String
authCode
=
String
.
valueOf
(
result
.
get
(
"authCode"
));
...
...
tax-token/token-common/src/main/java/com/tax/token/thirdService/impl/GetTokenFromEleJsonTax.java
View file @
d2f005db
...
...
@@ -61,6 +61,8 @@ public class GetTokenFromEleJsonTax implements TokenThirdServiceI {
resultMap
.
put
(
"userName"
,
ObjectUtil
.
fixNull
(
resultStrMap
.
get
(
"userName"
)));
resultMap
.
put
(
"session"
,
ObjectUtil
.
fixNull
(
resultStrMap
.
get
(
"session"
)));
resultMap
.
put
(
"authCode"
,
ObjectUtil
.
fixNull
(
resultStrMap
.
get
(
"authCode"
)));
resultMap
.
put
(
"loginType"
,
ObjectUtil
.
fixNull
(
resultStrMap
.
get
(
"loginType"
)));
resultMap
.
put
(
"site"
,
ObjectUtil
.
fixNull
(
resultStrMap
.
get
(
"site"
)));
if
(
"0"
.
equals
(
resultStrMap
.
get
(
"code"
))){
resultMap
.
put
(
"token"
,
resultStrMap
.
get
(
"token"
));
}
...
...
tax-token/token-dao/src/main/java/com/tax/token/mapper/TkTokenMapper.xml
View file @
d2f005db
...
...
@@ -467,6 +467,9 @@
<if
test=
"secretMd5 != null"
>
secret_md5 = #{secretMd5,jdbcType=VARCHAR},
</if>
<if
test=
"loginType != null"
>
login_type = #{loginType,jdbcType=VARCHAR},
</if>
<if
test=
"updateErrorFlag != null and updateErrorFlag !='' and updateErrorFlag =='1'.toString()"
>
error_code = #{errorCode,jdbcType=VARCHAR},
error_message = #{errorMessage,jdbcType=VARCHAR},
...
...
tax-token/token-service/src/main/java/com/tax/token/service/impl/TkTokenServiceImpl.java
View file @
d2f005db
...
...
@@ -191,6 +191,7 @@ public class TkTokenServiceImpl implements TkTokenService {
json
.
put
(
"session"
,
tkToken
.
getSecretMd5
());
json
.
put
(
"requestId"
,
tkToken
.
getRequestId
());
json
.
put
(
"authCode"
,
tkToken
.
getAuthCode
());
json
.
put
(
"loginType"
,
tkToken
.
getLoginType
());
json
.
put
(
"userGroupId"
,
(
StringUtil
.
isNotEmpty
(
tkToken
.
getTaxLoginName
())?
MD5Util
.
MD5Encode
(
tkToken
.
getTaxLoginName
()):
""
));
json
.
put
(
"userGroupName"
,
(
StringUtil
.
isNotEmpty
(
tkToken
.
getTaxLoginName
())?
tkToken
.
getTaxLoginName
():
""
));
if
(
isEncrypt
&&
(
null
!=
tkUser
.
getShowFlag
()
&&
tkUser
.
getShowFlag
().
equals
(
"1"
)))
{
...
...
@@ -453,6 +454,7 @@ public class TkTokenServiceImpl implements TkTokenService {
tkToken
.
setProxyIp
(
TokenThirdServiceFactory
.
getProxyIp
(
data
));
tkToken
.
setSecretMd5
(
TokenThirdServiceFactory
.
getSession
(
data
));
tkToken
.
setAuthCode
(
TokenThirdServiceFactory
.
getAuthCode
(
data
));
tkToken
.
setLoginType
(
TokenThirdServiceFactory
.
getLoginType
(
data
));
taxLoginName
=
TokenThirdServiceFactory
.
getUserName
(
data
);
tkToken
.
setTaxLoginName
(
taxLoginName
);
...
...
@@ -789,6 +791,7 @@ public class TkTokenServiceImpl implements TkTokenService {
updateToken
.
setProxyIp
(
tkToken
.
getProxyIp
());
updateToken
.
setTaxLoginName
(
tkToken
.
getTaxLoginName
());
updateToken
.
setSecretMd5
(
tkToken
.
getSecretMd5
());
updateToken
.
setLoginType
(
tkToken
.
getLoginType
());
if
(
tkToken
.
getTokenStatus
().
equals
(
TokenConstants
.
TOKEN_VALID
))
{
updateToken
.
setIsValid
(
"1"
);
...
...
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