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