1.优化上送提醒

This commit is contained in:
wr
2024-01-05 11:03:35 +08:00
parent 16e4520ce1
commit 0bd25daf60
2 changed files with 9 additions and 2 deletions

View File

@@ -61,6 +61,13 @@ public class GwSendUtil {
try {
HttpReturn ret = HttpCaller.invokeReturn(builder.build());
String responseStr = ret.getResponseStr();//获取响应的文本串
if (responseStr.indexOf("\\\"") != -1) {
responseStr = responseStr.replace("\\\"", "\"");
}
Map mapData = JSON.parseObject(responseStr, Map.class);
if(mapData.containsKey("error_msg")){
throw new BusinessException("国网上送接口超时,请重新上送");
}
map.put("succeed", responseStr);
} catch (HttpCallerException e) {
// error process