Browse Source

调用现场表计识别服务器

master
wangguangyuan 4 months ago
parent
commit
6e8f376fc5
1 changed files with 9 additions and 1 deletions
  1. +9
    -1
      src/main/java/com/inspect/simulator/service/impl/AlgorithmServiceImpl.java

+ 9
- 1
src/main/java/com/inspect/simulator/service/impl/AlgorithmServiceImpl.java View File

@ -108,7 +108,7 @@ public class AlgorithmServiceImpl implements AlgorithmService {
@Override
public String bigModelPicAnalyse(String analyseRequestStr) {
log.info(Color.MAGENTA + "BIG_MODEL_ANALYZE bigModelPicAnalyse: infraredPath: {}, analyseRequestStr={}" + Color.END, infraredPath, analyseRequestStr);
log.info(Color.MAGENTA + "BIG_MODEL_ANALYZE bigModelPicAnalyse: infraredPath: {},meterPath: {}, analyseRequestStr={}" + Color.END, infraredPath, meterPath, analyseRequestStr);
AnalyseRequest analyseRequest = new Gson().fromJson(analyseRequestStr, AnalyseRequest.class);
if (analyseRequest.getObjectList() == null || analyseRequest.getObjectList().isEmpty()) {
return "Invalid Parameter: " + analyseRequestStr;
@ -179,6 +179,14 @@ public class AlgorithmServiceImpl implements AlgorithmService {
}
} else {
// 调用现场表计识别服务器
try {
final String analyseRequestStrNew = new Gson().toJson(analyseRequest);
log.info(Color.MAGENTA + "BIG_MODEL_METER filterPicAnalyse: continue to call meter, meterPath: {}, analyseRequestStrNew={}" + Color.END, meterPath, analyseRequestStrNew);
String meterResult = HttpClientUtils.sendPostAgain(meterPath, analyseRequestStrNew);
log.info(Color.MAGENTA + "BIG_MODEL_METER RESULT: {}" + Color.END, meterResult);
} catch (Exception e) {
log.error("BIG_MODEL_METER continue to call meter EXCEPTION: {}", e.getMessage());
}
}
} else {
try {


Loading…
Cancel
Save