Browse Source

文章审核

master
zxc 5 years ago
parent
commit
342481d86c
  1. 4
      epmet-commons/epmet-commons-tools/src/main/java/com/epmet/commons/tools/utils/HttpClientManager.java

4
epmet-commons/epmet-commons-tools/src/main/java/com/epmet/commons/tools/utils/HttpClientManager.java

@ -157,7 +157,7 @@ public class HttpClientManager {
} }
} catch (Exception e) { } catch (Exception e) {
log.error("execute exception", e); log.error("execute exception", e);
new RenException(EpmetErrorCode.SERVER_ERROR.getCode(), EpmetErrorCode.SERVER_ERROR.getMsg()); return new Result<String>().error(EpmetErrorCode.SERVER_ERROR.getCode(), e.getMessage());
} finally { } finally {
httpMethod.releaseConnection(); httpMethod.releaseConnection();
try { try {
@ -167,7 +167,7 @@ public class HttpClientManager {
} catch (IOException e) { } catch (IOException e) {
} }
} }
throw new RenException(EpmetErrorCode.SERVER_ERROR.getCode(), EpmetErrorCode.SERVER_ERROR.getMsg()); return new Result<String>().error(EpmetErrorCode.SERVER_ERROR.getCode(), EpmetErrorCode.SERVER_ERROR.getMsg());
} }
public static void main(String[] args) { public static void main(String[] args) {

Loading…
Cancel
Save