Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Fedex
/
iClear-api
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
tao.mo
2022-11-17 16:41:10 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
da454777964f504d27a727f686d892ab1acf2048
da454777
1 parent
6b0da17b
修改刷新token凭证使用代理
mt 2022年11月17日16:41:06
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
src/main/java/com/erry/iclear/dateInterface/service/ApiService.java
src/main/java/com/erry/iclear/dateInterface/service/ApiService.java
View file @
da45477
...
...
@@ -114,7 +114,7 @@ public class ApiService {
public
void
refreshToken
(
String
token
)
throws
Exception
{
Map
<
String
,
String
>
map
=
new
HashMap
<
String
,
String
>();
map
.
put
(
"token"
,
token
);
HttpUtils
.
doP
ost
(
this
.
refreshTokenUrl
,
map
);
HttpUtils
.
doP
roxyPost
(
this
.
refreshTokenUrl
,
map
,
this
.
proxyUrl
,
this
.
proxyPort
);
}
/**
...
...
@@ -156,6 +156,7 @@ public class ApiService {
//推送海关回执数据
// String json = HttpUtils.doPost(this.customsUrl,objJson,headerMap);
String
json
=
HttpUtils
.
doProxyPost
(
this
.
customsUrl
,
objJson
,
headerMap
,
this
.
proxyUrl
,
this
.
proxyPort
);
log
.
info
(
"sendCustoms:"
+
json
);
//接口响应时间
declearTask
.
setResponseTime
(
new
Date
());
TokenResult
tokenResult
=
JsonToJava
.
parseJson
(
json
,
TokenResult
.
class
);
...
...
Please
register
or
login
to post a comment