From d7aa3b73486f8f15646f8ed38cacf649801fbf9c Mon Sep 17 00:00:00 2001 From: NewTab <425698907@qq.com> Date: Thu, 20 Jan 2022 21:32:09 +0800 Subject: [PATCH] Update http.dart --- lib/base/http/http.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); }