wjc
2025-04-03 07004825edb4516c59e68eac442ed93e00984dbf
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 msg = TextUtils.isEmpty(getErrorSting(e.getCode())) ? e.getMsg() : getErrorSting(e.getCode());
            return new HDLException(e.getCode(), msg, e.getmExtra());
        } catch (Exception exception) {
            return e;
        }
@@ -79,7 +80,7 @@
        try {
            switch (code) {
                case 1000:
                    return HDLApp.getInstance().getAppLocaleContext().getString(R.string.http_unknown);
                    return HDLApp.getInstance().getAppLocaleContext().getString(R.string.no_network_connection);
                case 1001:
                    return HDLApp.getInstance().getAppLocaleContext().getString(R.string.parse_error);
                case 1002: