1.优化上送提醒
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user