Compare commits
2 Commits
8ba36d9700
...
0b45f6a6c1
| Author | SHA1 | Date | |
|---|---|---|---|
| 0b45f6a6c1 | |||
| 7f077cf513 |
@@ -237,7 +237,10 @@ class HttpUtils {
|
|||||||
ToastUtils.showToast(msg: '服务响应超时');
|
ToastUtils.showToast(msg: '服务响应超时');
|
||||||
break;
|
break;
|
||||||
case DioExceptionType.unknown:
|
case DioExceptionType.unknown:
|
||||||
ToastUtils.showToast(msg: error.message);
|
ToastUtils.showToast(
|
||||||
|
msg: (error.message == '' || error.message?.isEmpty == true)
|
||||||
|
? '请重新登录'
|
||||||
|
: error.message);
|
||||||
break;
|
break;
|
||||||
case DioExceptionType.badResponse:
|
case DioExceptionType.badResponse:
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user