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-12-07 16:04:06 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
425de2c8b780ab84e4e4afad5b141520a4547c73
425de2c8
1 parent
9dd161e5
获取token频率调整为每次刷新获取
mt 2022年12月7日15:57:23
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
src/main/java/com/erry/iclear/dateInterface/api/VersionInterface.java
src/main/java/com/erry/iclear/dateInterface/task/IClearApiTask.java
src/main/java/com/erry/iclear/dateInterface/api/VersionInterface.java
View file @
425de2c
...
...
@@ -23,7 +23,7 @@ import java.util.Date;
@Slf4j
public
class
VersionInterface
{
//当前版本号
final
String
VERSION
=
"1.
3
"
;
final
String
VERSION
=
"1.
4
"
;
@ApiOperation
(
value
=
"获取当前API版本"
,
httpMethod
=
"GET"
,
notes
=
"ex: http://192.168.1.71:8080/version/version"
)
@GetMapping
(
"/version"
)
...
...
src/main/java/com/erry/iclear/dateInterface/task/IClearApiTask.java
View file @
425de2c
...
...
@@ -55,11 +55,10 @@ public class IClearApiTask {
}
}
/**
*
获取
token
*
每次请求获取最新
token
* @throws Exception
*/
private
void
getToken
()
throws
Exception
{
if
(
token
==
null
){
try
{
//获取token
TokenResult
tokenResult
=
apiService
.
getToken
();
...
...
@@ -69,7 +68,6 @@ public class IClearApiTask {
}
catch
(
Exception
ex
){
log
.
error
(
ex
.
getMessage
(),
ex
);
}
}
if
(
this
.
token
==
null
){
throw
new
Exception
(
"获取token失败!"
);
}
...
...
Please
register
or
login
to post a comment