feat(http):修改请求结果
This commit is contained in:
@@ -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