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
a16f7a7a
Commit
a16f7a7a
authored
Feb 01, 2024
by
ddx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
置换字符串到cleancookie的md5
parent
fd47310c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
4 deletions
+14
-4
tax-token/token-service/src/main/java/com/tax/token/service/impl/TkTokenServiceImpl.java
+1
-1
tax-token/token-web/src/test/java/com/yxcheng/token/web/controller/test/TokenUnitTest.java
+13
-3
No files found.
tax-token/token-service/src/main/java/com/tax/token/service/impl/TkTokenServiceImpl.java
View file @
a16f7a7a
...
...
@@ -865,7 +865,7 @@ public class TkTokenServiceImpl implements TkTokenService {
try
{
String
newUserInfo
=
""
;
if
(
null
!=
cookieReq
.
getUserInfoJson
())
{
newUserInfo
=
cookieReq
.
getUserInfoJson
(
).
toString
();
newUserInfo
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
cookieReq
.
getUserInfoJson
()),
TaxUserInfo
.
class
).
toString
();
}
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 @
a16f7a7a
...
...
@@ -239,11 +239,21 @@ public class TokenUnitTest {
param
.
put
(
"taxno"
,
"914404003980391901"
);
param
.
put
(
"zoneCode"
,
"4400"
);
param
.
put
(
"userInfo"
,
Base64Util
.
encode
(
"刘志怡021323[a%b@q]Lzy672672[a%b@q]"
));
// param.put("userInfo",Base64Util.encode("刘志怡021323[a%b@q]Lzy672672[a%b@q]"));
Map
userparam
=
new
HashMap
<>();
userparam
.
put
(
"loginType"
,
"b"
);
userparam
.
put
(
"nsrsbh"
,
"91440101MA5CRHH33W"
);
userparam
.
put
(
"username"
,
"Fanny123456"
);
userparam
.
put
(
"userType"
,
"办税人"
);
userparam
.
put
(
"password"
,
"Fanny123456"
);
param
.
put
(
"userInfoJson"
,
userparam
);
System
.
out
.
println
(
url
);
//
String ret = HttpHelper.postWithJson(url,JSON.toJSONString(param));
//
System.out.println(ret);
String
ret
=
HttpHelper
.
postWithJson
(
url
,
JSON
.
toJSONString
(
param
));
System
.
out
.
println
(
ret
);
}
@Test
...
...
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