Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
熊鹏飞
/
xxljob220
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
fbe2c67f
authored
Jun 27, 2017
by
xuxueli
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
优化:API回调服务失败状态码优化,方便问题排查;
parent
8244262d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletions
README.md
xxl-job-core/src/main/java/com/xxl/job/core/util/AdminApiUtil.java
README.md
View file @
fbe2c67f
...
@@ -855,6 +855,7 @@ Tips: 历史版本(V1.3.x)目前已经Release至稳定版本, 进入维护阶段
...
@@ -855,6 +855,7 @@ Tips: 历史版本(V1.3.x)目前已经Release至稳定版本, 进入维护阶段
#### 6.16 版本 V1.8.0 特性[Coding]
#### 6.16 版本 V1.8.0 特性[Coding]
-
1、任务Cron更新逻辑优化,改为rescheduleJob,同时防止cron重复设置;
-
1、任务Cron更新逻辑优化,改为rescheduleJob,同时防止cron重复设置;
-
2、优化:API回调服务失败状态码优化,方便问题排查;
#### TODO LIST
#### TODO LIST
-
1、任务权限管理:执行器为粒度分配权限,核心操作校验权限;
-
1、任务权限管理:执行器为粒度分配权限,核心操作校验权限;
...
...
xxl-job-core/src/main/java/com/xxl/job/core/util/AdminApiUtil.java
View file @
fbe2c67f
...
@@ -97,7 +97,7 @@ public class AdminApiUtil {
...
@@ -97,7 +97,7 @@ public class AdminApiUtil {
if
(
null
!=
entity
)
{
if
(
null
!=
entity
)
{
if
(
response
.
getStatusLine
().
getStatusCode
()
!=
200
)
{
if
(
response
.
getStatusLine
().
getStatusCode
()
!=
200
)
{
EntityUtils
.
consume
(
entity
);
EntityUtils
.
consume
(
entity
);
return
ReturnT
.
FAIL
;
return
new
ReturnT
<
String
>(
response
.
getStatusLine
().
getStatusCode
(),
"StatusCode Error."
)
;
}
}
String
responseMsg
=
EntityUtils
.
toString
(
entity
,
"UTF-8"
);
String
responseMsg
=
EntityUtils
.
toString
(
entity
,
"UTF-8"
);
...
...
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