Commit e276b9e4 authored by yanzg's avatar yanzg

身份证识别

parent e1d253ea
...@@ -253,7 +253,8 @@ public class HttpHelper { ...@@ -253,7 +253,8 @@ public class HttpHelper {
if (returnCode == HttpURLConnection.HTTP_OK) { if (returnCode == HttpURLConnection.HTTP_OK) {
in = readStream(httpConn.getInputStream(), result, charset); in = readStream(httpConn.getInputStream(), result, charset);
} else { } else {
throw new HttpCodeException(StringHelper.toString(returnCode), httpConn.getResponseMessage()); in = readStream(httpConn.getErrorStream(), result, charset);
throw new HttpCodeException(StringHelper.toString(returnCode), StringHelper.getFirst(httpConn.getResponseMessage(), result.toString()));
} }
} catch (HttpCodeException ex) { } catch (HttpCodeException ex) {
throw ex; throw 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