wjc
19 小时以前 7d56179afde21fd2730cda37da164af353f76623
app/src/main/java/com/hdl/photovoltaic/internet/HttpClient.java
@@ -69,7 +69,8 @@
    public static HDLException getException(HDLException e) {
        try {
            return new HDLException(e.getCode(), getErrorSting(e.getCode()), e.getmExtra());
            String str = TextUtils.isEmpty(getErrorSting(e.getCode())) ? e.getMsg() : getErrorSting(e.getCode());
            return new HDLException(e.getCode(), str, e.getmExtra());
        } catch (Exception exception) {
            return e;
        }
@@ -89,6 +90,8 @@
                    return HDLApp.getInstance().getAppLocaleContext().getString(R.string.ssl_error);
                case 1005:
                    return HDLApp.getInstance().getAppLocaleContext().getString(R.string.timeout_error);
                case 4:
                    return HDLApp.getInstance().getAppLocaleContext().getString(R.string.signature_error_log_in_again);
            }
        } catch (Exception e) {
            e.printStackTrace();
@@ -261,7 +264,7 @@
    public Disposable downLoadFile(String url, CloudCallBeak<ResponseBody> callBack) {
        return HxHttp.builder()
                .url(url)
                .headers(HDLSmartHeader.IGNORE_SIGN_HEADER, 1)
                .headers(HDLSmartHeader.IGNORE_SIGN_HEADER, 1).headers(HDLSmartHeader.NOAUTHENTICATION, 1)
                .build()
                .download()
                .subscribe(new Consumer<ResponseBody>() {