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
14da758b
Commit
14da758b
authored
Jun 04, 2024
by
ddx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
清除cookie适配新的md5
parent
267c694d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
5 deletions
+29
-5
tax-file-face/file-face-web/src/test/java/com/yxcheng/file/web/controller/test/FileTest.java
+2
-2
tax-token/token-service/src/main/java/com/tax/token/service/impl/TkTokenServiceImpl.java
+25
-1
tax-token/token-web/src/test/java/com/yxcheng/token/web/controller/test/TokenUnitTest.java
+2
-2
No files found.
tax-file-face/file-face-web/src/test/java/com/yxcheng/file/web/controller/test/FileTest.java
View file @
14da758b
...
...
@@ -50,9 +50,9 @@ public class FileTest {
// String accessKeyID = "bwgf-limit";
// static String accessKeySecret = "qixiangyuns@21$&!";
//
static String host = "http://127.0.0.1:8767";
static
String
host
=
"http://127.0.0.1:8767"
;
// static String host = "https://api.taxservices.cn";
static
String
host
=
"http://101.201.74.244:8767"
;
//
static String host = "http://101.201.74.244:8767";
// static String host = "http://bwtoken.invservice.cn:7779";
...
...
tax-token/token-service/src/main/java/com/tax/token/service/impl/TkTokenServiceImpl.java
View file @
14da758b
...
...
@@ -878,7 +878,31 @@ public class TkTokenServiceImpl implements TkTokenService {
try
{
String
newUserInfo
=
""
;
if
(
null
!=
cookieReq
.
getUserInfoJson
())
{
newUserInfo
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
cookieReq
.
getUserInfoJson
()),
TaxUserInfo
.
class
).
toString
();
JSONObject
loginInfoJson
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
cookieReq
.
getUserInfoJson
()));
TaxUserInfo
bean
;
String
loginType
=
""
;
if
(
loginInfoJson
.
containsKey
(
"loginType"
))
{
loginType
=
loginInfoJson
.
getString
(
"loginType"
);
}
if
(
"b"
.
equals
(
loginType
))
{
bean
=
new
TaxUserInfo
();
if
(
loginInfoJson
.
containsKey
(
"password"
))
{
bean
.
setPassword
(
loginInfoJson
.
getString
(
"password"
));
}
if
(
loginInfoJson
.
containsKey
(
"username"
))
{
bean
.
setUsername
(
loginInfoJson
.
getString
(
"username"
));
}
if
(
loginInfoJson
.
containsKey
(
"phone"
))
{
bean
.
setPhone
(
loginInfoJson
.
getString
(
"phone"
));
}
if
(
loginInfoJson
.
containsKey
(
"userType"
))
{
bean
.
setUserType
(
loginInfoJson
.
getString
(
"userType"
));
}
newUserInfo
=
bean
.
toString
();
}
else
{
newUserInfo
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
cookieReq
.
getUserInfoJson
()),
TaxUserInfo
.
class
).
toString
();
}
logger
.
info
(
uuId
+
" cleanCookie taxno is "
+
taxno
+
", newUserInfo is "
+
newUserInfo
);
}
else
{
String
oldUserInfo
=
cookieReq
.
getUserInfo
();
if
(
StringUtils
.
isNotEmpty
(
oldUserInfo
))
{
...
...
tax-token/token-web/src/test/java/com/yxcheng/token/web/controller/test/TokenUnitTest.java
View file @
14da758b
...
...
@@ -13,8 +13,8 @@ import java.util.Map;
public
class
TokenUnitTest
{
// static String host = "http://47.94.208.133:8762";
//
static String host = "http://127.0.0.1:8762";
static
String
host
=
"https://api.xfapiao.com"
;
static
String
host
=
"http://127.0.0.1:8762"
;
//
static String host = "https://api.xfapiao.com";
String
accessKeyID
=
"eyongyou"
;
static
String
accessKeySecret
=
"yongyou!@#566ccd"
;
...
...
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