Compare commits

..

2 Commits

Author SHA1 Message Date
wangliankun 0b45f6a6c1 Merge remote-tracking branch 'origin/main' 2026-05-07 14:19:36 +08:00
wangliankun 7f077cf513 feat(http):修改请求结果 2026-05-07 13:59:16 +08:00
+4 -1
View File
@@ -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 {