Explorar o código

fix save detailsService

allen hai 5 meses
pai
achega
7b90682736

+ 0 - 13
taais-modules/taais-biz/src/main/java/com/taais/biz/service/impl/TargetIdentificationSubtaskServiceImpl.java

@@ -266,19 +266,6 @@ public class TargetIdentificationSubtaskServiceImpl extends BaseServiceImpl<Targ
         try {
             String res = HttpUtil.post(url, JSONUtil.toJsonStr(algorithmRequestDto));
             log.info("res is: {}", res);
-            if (res != null) {
-                //log.info("version is : {}", detail.getVersion());
-                JSONObject jsonObject = JSON.parseObject(res);
-                if (jsonObject.getInteger("status") == 200) {
-                    detail.setStatus(BizConstant.TASK_STATUS_SUCCEED);
-                    detail.setRemarks("HTTP请求成功");
-                } else {
-                    detail.setStatus(BizConstant.TASK_STATUS_FAILED);
-                    detail.setEndTime(new Date());
-                    detail.setCostSecond(detail.getEndTime().getTime() - detail.getStartTime().getTime());
-                    detail.setRemarks("HTTP请求失败: " + (res.length() < 200 ? res : res.substring(0, 200)));
-                }
-            }
         } catch (Exception e) {
             log.error("http request error: {}", e.getMessage());
             detail.setStatus(BizConstant.TASK_STATUS_FAILED);