Browse Source

http查询修改测试

dev-lhz
chenzhihang 1 year ago
parent
commit
a6c49e039e
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/ExperimentInsServiceImpl.java

+ 3
- 3
ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/ExperimentInsServiceImpl.java View File

@@ -272,7 +272,7 @@ public class ExperimentInsServiceImpl implements ExperimentInsService {

try {
// 发送POST请求到Argo工作流状态查询接口,并将请求数据转换为JSON
String req = httpUtils.sendPost(argoUrl + argoWorkflowStatus, null, JsonUtils.mapToJson(res));
String req = HttpUtils.sendPost(argoUrl + argoWorkflowStatus, null, JsonUtils.mapToJson(res));
// 检查响应是否为空或无内容
if (req == null || StringUtils.isEmpty(req)) {
throw new RuntimeException("工作流状态响应为空。");
@@ -366,7 +366,7 @@ public class ExperimentInsServiceImpl implements ExperimentInsService {

try {
// 发送POST请求到Argo工作流状态查询接口,并将请求数据转换为JSON
String req = httpUtils.sendPost(argoUrl + argoWorkflowTermination, null, JsonUtils.mapToJson(res));
String req = HttpUtils.sendPost(argoUrl + argoWorkflowTermination, null, JsonUtils.mapToJson(res));
// 检查响应是否为空或无内容
if (StringUtils.isEmpty(req)) {
throw new RuntimeException("终止响应内容为空。");
@@ -443,7 +443,7 @@ public class ExperimentInsServiceImpl implements ExperimentInsService {

try {
// 发送POST请求到Argo工作流日志查询接口,并将请求数据转换为JSON
String req = httpUtils.sendPost(argoUrl + argoWorkflowLog, null, JsonUtils.mapToJson(res));
String req = HttpUtils.sendPost(argoUrl + argoWorkflowLog, null, JsonUtils.mapToJson(res));
// 检查响应是否为空或无内容
if (StringUtils.isEmpty(req)) {
throw new RuntimeException("响应内容为空");


Loading…
Cancel
Save