This commit is contained in:
王奎兴
2026-09-05 17:51:37 +08:00
parent c043da88e4
commit 1689da1911
2 changed files with 10 additions and 10 deletions
@@ -42,7 +42,7 @@ public class XxlJobOpenApiUtil {
try {
Map<String, Object> formMap = BeanUtil.beanToMap(addReq);
HttpResponse response = HttpRequest.post(url)
.header("Cookie", cookie)
.header("Authorization", cookie)
.form(formMap)
.execute();
int status = response.getStatus();
@@ -65,7 +65,7 @@ public class XxlJobOpenApiUtil {
String url = adminUrl + "/jobinfo/pageList";
try {
HttpResponse response = HttpRequest.post(url)
.header("Cookie", cookie)
.header("Authorization", cookie)
.form("jobGroup", "")
.form("jobDesc", jobDesc)
.form("executorHandler", "")
@@ -104,7 +104,7 @@ public class XxlJobOpenApiUtil {
String url = adminUrl + "/jobinfo/pause";
try {
HttpResponse response = HttpRequest.post(url)
.header("Cookie", cookie)
.header("Authorization", cookie)
.form("id", jobId)
.execute();
return response.getStatus() == 302;
@@ -126,7 +126,7 @@ public class XxlJobOpenApiUtil {
String url = adminUrl + "/jobinfo/start";
try {
HttpResponse response = HttpRequest.post(url)
.header("Cookie", cookie)
.header("Authorization", cookie)
.form("id", jobId)
.execute();
return response.getStatus() == 302;
@@ -148,7 +148,7 @@ public class XxlJobOpenApiUtil {
String url = adminUrl + "/jobinfo/remove";
try {
HttpResponse response = HttpRequest.post(url)
.header("Cookie", cookie)
.header("Authorization", cookie)
.form("id", jobId)
.execute();
return response.getStatus() == 302;