|
|
|
@ -1,6 +1,7 @@
|
|
|
|
import 'dart:convert';
|
|
|
|
import 'dart:convert';
|
|
|
|
|
|
|
|
|
|
|
|
import 'package:diplomaticquarterapp/config/config.dart';
|
|
|
|
import 'package:diplomaticquarterapp/config/config.dart';
|
|
|
|
|
|
|
|
import 'package:diplomaticquarterapp/config/shared_pref_kay.dart';
|
|
|
|
import 'package:diplomaticquarterapp/uitl/app_shared_preferences.dart';
|
|
|
|
import 'package:diplomaticquarterapp/uitl/app_shared_preferences.dart';
|
|
|
|
import 'package:diplomaticquarterapp/uitl/utils.dart';
|
|
|
|
import 'package:diplomaticquarterapp/uitl/utils.dart';
|
|
|
|
import 'package:http/http.dart' as http;
|
|
|
|
import 'package:http/http.dart' as http;
|
|
|
|
@ -64,10 +65,7 @@ class BaseAppClient {
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
logout();
|
|
|
|
logout();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// await helpers.logout();
|
|
|
|
|
|
|
|
//helpers.showErrorToast('Your session expired Please login agian');
|
|
|
|
|
|
|
|
var asd ="";
|
|
|
|
|
|
|
|
// TODO create logout fun
|
|
|
|
|
|
|
|
} else if (parsed['MessageStatus'] == 1 ||
|
|
|
|
} else if (parsed['MessageStatus'] == 1 ||
|
|
|
|
parsed['SMSLoginRequired'] == true) {
|
|
|
|
parsed['SMSLoginRequired'] == true) {
|
|
|
|
onSuccess(parsed, statusCode);
|
|
|
|
onSuccess(parsed, statusCode);
|
|
|
|
|