This commit is contained in:
王奎兴
2026-09-05 17:59:18 +08:00
parent 1689da1911
commit d9e5cede10
2 changed files with 8 additions and 8 deletions
@@ -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;
@@ -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;