Commit 66110f1d authored by yanzg's avatar yanzg

身份证识别

parent e276b9e4
......@@ -155,6 +155,8 @@ public class HttpHelper {
// 打开URL连接
java.net.HttpURLConnection httpConn = getConn(url);
return post(httpConn, jsonString, CHARSET_DEFAULT);
} catch (RuntimeException ex) {
throw ex;
} catch (Exception ex) {
throw new RuntimeException(ex);
}
......@@ -181,6 +183,8 @@ public class HttpHelper {
// 打开URL连接
java.net.HttpURLConnection httpConn = getConn(url);
return get(httpConn, charset);
} catch (RuntimeException ex) {
throw ex;
} catch (Exception ex) {
throw new RuntimeException(ex);
}
......@@ -209,6 +213,8 @@ public class HttpHelper {
// 打开URL连接
java.net.HttpURLConnection httpConn = getConn(url, true);
return post(httpConn, jsonString, charset);
} catch (RuntimeException ex) {
throw ex;
} catch (Exception ex) {
throw new RuntimeException(ex);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment