|
@@ -1,5 +1,6 @@
|
|
|
package com.zd.alg.forward.serivce.impl;
|
|
package com.zd.alg.forward.serivce.impl;
|
|
|
|
|
|
|
|
|
|
+import com.alibaba.fastjson.JSON;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.zd.alg.forward.config.AlgorithmYml;
|
|
import com.zd.alg.forward.config.AlgorithmYml;
|
|
|
import com.zd.alg.forward.domain.AlgorithmResponseResult;
|
|
import com.zd.alg.forward.domain.AlgorithmResponseResult;
|
|
@@ -31,7 +32,8 @@ import java.util.Date;
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
-import static com.zd.alg.forward.utils.HttpUtils.*;
|
|
|
|
|
|
|
+import static com.zd.alg.forward.utils.HttpUtils.getHttpEntityMap;
|
|
|
|
|
+import static com.zd.alg.forward.utils.HttpUtils.getStringObjectMultiValueMap;
|
|
|
|
|
|
|
|
/***
|
|
/***
|
|
|
* <p>类注释说明</p>
|
|
* <p>类注释说明</p>
|
|
@@ -152,7 +154,7 @@ public class AlgorithmServiceImpl implements AlgorithmService {
|
|
|
*/
|
|
*/
|
|
|
@Override
|
|
@Override
|
|
|
public AlgorithmResponseResult getResponseResult(ImgPostResponse<AnalysisReturnData> send) {
|
|
public AlgorithmResponseResult getResponseResult(ImgPostResponse<AnalysisReturnData> send) {
|
|
|
- log.info("【算法响应数据】==============>>>> \n" + JSONObject.toJSONString(send));
|
|
|
|
|
|
|
+ log.info("【算法响应数据】==============>>>> \n" + JSON.toJSONString(send));
|
|
|
AlgorithmResponseResult responseResult = new AlgorithmResponseResult();
|
|
AlgorithmResponseResult responseResult = new AlgorithmResponseResult();
|
|
|
if (send != null) {
|
|
if (send != null) {
|
|
|
responseResult.setCode(send.getStatus_code());
|
|
responseResult.setCode(send.getStatus_code());
|