Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etax-income-api
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
etax-income-api
Commits
ae0ef339
Commit
ae0ef339
authored
Jul 04, 2024
by
ddx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解析token异常不影响正常文本展示
parent
3707f3a4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
9 deletions
+13
-9
etax-income-domain/src/main/java/com/sxc/etaxincome/domain/business/impl/QueryManager.java
+13
-9
No files found.
etax-income-domain/src/main/java/com/sxc/etaxincome/domain/business/impl/QueryManager.java
View file @
ae0ef339
...
...
@@ -75,18 +75,22 @@ public class QueryManager implements IQueryManager {
JSONObject
requestParam
=
new
JSONObject
();
JSONObject
cookie
=
new
JSONObject
();
String
reqContext
=
incomeInvoiceApply
.
getReqContext
();
if
(
StringUtil
.
isNotEmpty
(
reqContext
))
{
if
(
reqContext
.
contains
(
"token"
))
{
String
preReqContext
=
reqContext
.
substring
(
reqContext
.
indexOf
(
"T1C2K3"
));
String
cookieContext
=
EncryptUtil
.
decryptAesCk
(
preReqContext
.
substring
(
0
,
preReqContext
.
indexOf
(
"\\"
)));
if
(
StringUtil
.
isNotEmpty
(
cookieContext
))
{
cookie
=
JSON
.
parseObject
(
cookieContext
);
requestParam
.
put
(
"cookie"
,
cookie
.
get
(
"cookie"
));
requestParam
.
put
(
"dqdm"
,
incomeInvoiceApply
.
getZoneCode
());
try
{
if
(
StringUtil
.
isNotEmpty
(
reqContext
))
{
if
(
reqContext
.
contains
(
"token"
))
{
String
preReqContext
=
reqContext
.
substring
(
reqContext
.
indexOf
(
"T1C2K3"
));
String
cookieContext
=
EncryptUtil
.
decryptAesCk
(
preReqContext
.
substring
(
0
,
preReqContext
.
indexOf
(
"\\"
)));
if
(
StringUtil
.
isNotEmpty
(
cookieContext
))
{
cookie
=
JSON
.
parseObject
(
cookieContext
);
requestParam
.
put
(
"cookie"
,
cookie
.
get
(
"cookie"
));
requestParam
.
put
(
"dqdm"
,
incomeInvoiceApply
.
getZoneCode
());
}
}
}
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
JSONObject
responseResult
=
null
;
IncomeCompletePeriod
incomeCompletePeriod
=
IncomeCompletePeriod
.
builder
()
.
cookie
(
cookie
)
.
requestParam
(
requestParam
)
...
...
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