登录ConnectException异常错误提示优化
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user