修复部分逻辑

master
土豆兄弟 4 years ago
parent fbf83e30b8
commit ce9e65c561

@ -9,15 +9,14 @@ import cn.hutool.http.HttpResponse;
import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.yuyou.openapi.openapi.common.enums.IntentionEnum; import com.yuyou.openapi.openapi.common.enums.IntentionEnum;
import com.yuyou.openapi.openapi.model.dto.LieheMessageCovDTO;
import com.yuyou.openapi.openapi.model.dto.ABMessageCovDTO; import com.yuyou.openapi.openapi.model.dto.ABMessageCovDTO;
import com.yuyou.openapi.openapi.model.dto.ABMessageDTO; import com.yuyou.openapi.openapi.model.dto.ABMessageDTO;
import com.yuyou.openapi.openapi.model.dto.LieheMessageCovDTO;
import com.yuyou.openapi.openapi.service.ABMessageService; import com.yuyou.openapi.openapi.service.ABMessageService;
import com.yuyou.openapi.openapi.utils.DateUtils; import com.yuyou.openapi.openapi.utils.DateUtils;
import com.yuyou.openapi.openapi.utils.SignUtils; import com.yuyou.openapi.openapi.utils.SignUtils;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.apache.poi.ss.formula.functions.T;
import org.springframework.beans.BeanUtils; import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value; import org.springframework.beans.factory.annotation.Value;
@ -177,7 +176,7 @@ public class ABDownTask {
// 请求的响应处理 // 请求的响应处理
// todo 失败重发请求3次 // todo 失败重发请求3次
/* while (count <= 3){ while (count <= 3){
// 调用HTTP请求发送数据 // 调用HTTP请求发送数据
HttpResponse httpResponse = sendReq(jsonStr); HttpResponse httpResponse = sendReq(jsonStr);
if (httpResponse.isOk() && httpResponse.body().contains("OK")){ if (httpResponse.isOk() && httpResponse.body().contains("OK")){
@ -190,7 +189,7 @@ public class ABDownTask {
} }
if (count > 3) { if (count > 3) {
return Boolean.FALSE; return Boolean.FALSE;
}*/ }
return Boolean.TRUE; return Boolean.TRUE;
} }

Loading…
Cancel
Save