|
|
@@ -5,6 +5,7 @@ import com.alibaba.fastjson.JSONObject; |
|
|
|
import com.tuoheng.admin.enums.code.inspection.EditInspectionStatusCodeEnum; |
|
|
|
import com.tuoheng.admin.entity.request.inspection.MissionStatusRequest; |
|
|
|
import com.tuoheng.common.core.utils.JsonResult; |
|
|
|
import com.tuoheng.common.core.utils.StringUtils; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import org.springframework.beans.factory.annotation.Value; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
@@ -75,6 +76,11 @@ public class StartAIService { |
|
|
|
log.info("调用DSP服务, jsonObject:{}", jsonObject); |
|
|
|
String result = SendPost.doPost(url, jsonObject, null); |
|
|
|
log.info("调用DSP服务, result:{}", result); |
|
|
|
String stringStr = "post请求失败!"; |
|
|
|
if(result.equals(stringStr)){ |
|
|
|
log.info("调用dsp服务, 处理post请求失败"); |
|
|
|
throw new SecurityException("调用dsp服务,处理post请求失败"); |
|
|
|
} |
|
|
|
return JSONObject.parseObject(result); |
|
|
|
} |
|
|
|
|