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