|
|
|
@ -2,6 +2,7 @@ package org.jeecg.modules.ocr.utils;
|
|
|
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSONArray;
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
|
|
import com.alibaba.fastjson.serializer.SerializerFeature;
|
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
import org.apache.commons.collections.CollectionUtils;
|
|
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
@ -76,7 +77,7 @@ public class CallBackWlyUtils {
|
|
|
|
|
System.out.println("=============================================");
|
|
|
|
|
System.out.println(JSONObject.toJSONString(callBackWlyRequestBody));
|
|
|
|
|
System.out.println("=============================================");
|
|
|
|
|
semanticResponseJson = RestUtil.post("https://192.168.1.21:8686/api/task/image/ocr/callback", JSONObject.parseObject(JSONObject.toJSONString(callBackWlyRequestBody)));
|
|
|
|
|
semanticResponseJson = RestUtil.post("https://192.168.1.21:8686/api/task/image/ocr/callback", JSONObject.parseObject(JSONObject.toJSONString(callBackWlyRequestBody, SerializerFeature.WriteNullStringAsEmpty)));
|
|
|
|
|
} catch (org.springframework.web.client.ResourceAccessException e) {
|
|
|
|
|
log.error("请求无量云回调接口失败-拒绝连接 (Connection refused)");
|
|
|
|
|
log.error(e.getMessage());
|
|
|
|
|