code
This commit is contained in:
+4
-4
@@ -48,7 +48,7 @@ public class XxlJobOpenApiUtil {
|
||||
int status = response.getStatus();
|
||||
log.info("[XxlJob] addJob status:{}", status);
|
||||
// 新增成功302重定向到列表页
|
||||
return status == 302;
|
||||
return status == 200;
|
||||
} catch (Exception e) {
|
||||
log.error("[XxlJob] addJob异常", e);
|
||||
return false;
|
||||
@@ -107,7 +107,7 @@ public class XxlJobOpenApiUtil {
|
||||
.header("Authorization", cookie)
|
||||
.form("id", jobId)
|
||||
.execute();
|
||||
return response.getStatus() == 302;
|
||||
return response.getStatus() == 200;
|
||||
} catch (Exception e) {
|
||||
log.error("[XxlJob] pauseJob jobId:{}异常", jobId, e);
|
||||
return false;
|
||||
@@ -129,7 +129,7 @@ public class XxlJobOpenApiUtil {
|
||||
.header("Authorization", cookie)
|
||||
.form("id", jobId)
|
||||
.execute();
|
||||
return response.getStatus() == 302;
|
||||
return response.getStatus() == 200;
|
||||
} catch (Exception e) {
|
||||
log.error("[XxlJob] startJob jobId:{}异常", jobId, e);
|
||||
return false;
|
||||
@@ -151,7 +151,7 @@ public class XxlJobOpenApiUtil {
|
||||
.header("Authorization", cookie)
|
||||
.form("id", jobId)
|
||||
.execute();
|
||||
return response.getStatus() == 302;
|
||||
return response.getStatus() == 200;
|
||||
} catch (Exception e) {
|
||||
log.error("[XxlJob] removeJob jobId:{}异常", jobId, e);
|
||||
return false;
|
||||
|
||||
+4
-4
@@ -48,7 +48,7 @@ public class XxlJobOpenApiUtil {
|
||||
int status = response.getStatus();
|
||||
log.info("[XxlJob] addJob status:{}", status);
|
||||
// 新增成功302重定向到列表页
|
||||
return status == 302;
|
||||
return status == 200;
|
||||
} catch (Exception e) {
|
||||
log.error("[XxlJob] addJob异常", e);
|
||||
return false;
|
||||
@@ -107,7 +107,7 @@ public class XxlJobOpenApiUtil {
|
||||
.header("Authorization", cookie)
|
||||
.form("id", jobId)
|
||||
.execute();
|
||||
return response.getStatus() == 302;
|
||||
return response.getStatus() == 200;
|
||||
} catch (Exception e) {
|
||||
log.error("[XxlJob] pauseJob jobId:{}异常", jobId, e);
|
||||
return false;
|
||||
@@ -129,7 +129,7 @@ public class XxlJobOpenApiUtil {
|
||||
.header("Authorization", cookie)
|
||||
.form("id", jobId)
|
||||
.execute();
|
||||
return response.getStatus() == 302;
|
||||
return response.getStatus() == 200;
|
||||
} catch (Exception e) {
|
||||
log.error("[XxlJob] startJob jobId:{}异常", jobId, e);
|
||||
return false;
|
||||
@@ -151,7 +151,7 @@ public class XxlJobOpenApiUtil {
|
||||
.header("Authorization", cookie)
|
||||
.form("id", jobId)
|
||||
.execute();
|
||||
return response.getStatus() == 302;
|
||||
return response.getStatus() == 200;
|
||||
} catch (Exception e) {
|
||||
log.error("[XxlJob] removeJob jobId:{}异常", jobId, e);
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user