diff --git a/lib/base/http/http.dart b/lib/base/http/http.dart index f6d0133..d6fa876 100644 --- a/lib/base/http/http.dart +++ b/lib/base/http/http.dart @@ -126,7 +126,7 @@ class Http { } static HttpResponse exceptionHandler(DioError e) { - if (e.response?.statusCode == 401) { + if (e.response?.data!= null && e.response?.data['code'] == 401) { if (!getIt().useSecretLogined) { exitLogin(); }