mirror of
https://github.com/qinglong-app/qinglong_app.git
synced 2025-10-09 16:48:19 +08:00
Update http.dart
This commit is contained in:
@@ -126,7 +126,7 @@ class Http {
|
||||
}
|
||||
|
||||
static HttpResponse<T> exceptionHandler<T>(DioError e) {
|
||||
if (e.response?.statusCode == 401) {
|
||||
if (e.response?.data!= null && e.response?.data['code'] == 401) {
|
||||
if (!getIt<UserInfoViewModel>().useSecretLogined) {
|
||||
exitLogin();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user