登录ConnectException异常错误提示优化

This commit is contained in:
huangjian
2022-08-31 11:31:56 +08:00
parent 792aa2cd5b
commit 613f39a7d2

View File

@@ -28,7 +28,11 @@ public class OldHttpErrorHandleUtil {
}
return result.getMessage();
} else {
return throwable.getMessage();
if (throwable.getMessage() != null && throwable.getMessage().contains("ConnectException")) {
return "网络异常,请检查您的网络再试!";
} else {
return throwable.getMessage();
}
}
} catch (Exception e) {
return e.getMessage();