From 0ffbadedc3ddece03358acc484b065dbe2de79ab Mon Sep 17 00:00:00 2001 From: haroon amjad Date: Tue, 10 Nov 2026 14:18:58 +0300 Subject: [PATCH] Updates --- lib/api/login_api_client.dart | 10 +++++++++- lib/api/profile_api_client.dart | 2 +- lib/app_state/app_state.dart | 2 +- lib/classes/consts.dart | 4 ++-- lib/ui/landing/dashboard_screen.dart | 1 + 5 files changed, 14 insertions(+), 5 deletions(-) diff --git a/lib/api/login_api_client.dart b/lib/api/login_api_client.dart index 65e5fc64..e666c094 100644 --- a/lib/api/login_api_client.dart +++ b/lib/api/login_api_client.dart @@ -296,7 +296,15 @@ class LoginApiClient { Future checkActivationCode(bool isDeviceNFC, String? mobileNumber, String activationCode, String? pUserName, String loginType) async { String url = "${ApiConsts.erpRest}CheckActivationCode"; - Map postParams = {"IsDeviceNFC": isDeviceNFC, "MobileNumber": mobileNumber, "activationCode": activationCode, "P_USER_NAME": pUserName, "LoginType":loginType}; + Map postParams = { + "DeviceToken": AppState().getDeviceToken, + "DeviceType": (Platform.isAndroid ? "android" : "ios"), + "IsDeviceNFC": isDeviceNFC, + "MobileNumber": mobileNumber, + "activationCode": activationCode, + "P_USER_NAME": pUserName, + "LoginType": loginType + }; postParams.addAll(AppState().postParamsJson); return await ApiClient().postJsonForObject((json) { GenericResponseModel responseData = GenericResponseModel.fromJson(json); diff --git a/lib/api/profile_api_client.dart b/lib/api/profile_api_client.dart index 8f84baeb..31dfc826 100644 --- a/lib/api/profile_api_client.dart +++ b/lib/api/profile_api_client.dart @@ -487,7 +487,7 @@ class ProfileApiClient { String comments, String itemKey, int transactionId, { - dynamic relationId, + relationId, }) async { String url = "${ApiConsts.erpRest}START_CONTACT_APPROVAL_PROCESS"; Map postParams = { diff --git a/lib/app_state/app_state.dart b/lib/app_state/app_state.dart index 84e9ae0c..0d01d44c 100644 --- a/lib/app_state/app_state.dart +++ b/lib/app_state/app_state.dart @@ -92,7 +92,7 @@ class AppState { String get getHuaweiPushToken => _huaweiPushToken; - final PostParamsModel _postParamsInitConfig = PostParamsModel(channel: 31, versionID: 10.2, mobileType: Platform.isAndroid ? "android" : "ios"); + final PostParamsModel _postParamsInitConfig = PostParamsModel(channel: 31, versionID: 10.3, mobileType: Platform.isAndroid ? "android" : "ios"); PostParamsModel get postParamsInitConfig { if (_postParamsInitConfig.pLegislationCode == null) { diff --git a/lib/classes/consts.dart b/lib/classes/consts.dart index ee54c7f5..bba9342f 100644 --- a/lib/classes/consts.dart +++ b/lib/classes/consts.dart @@ -9,13 +9,13 @@ class ApiConsts { // static String baseUrl = "https://webservices.hmg.com"; // PreProd // static String baseUrl = "https://hmgwebservices.com"; // Live server - // static String baseUrl = "https://mohemm.hmg.com"; // New Live server + static String baseUrl = "https://mohemm.hmg.com"; // New Live server static String ssoBaseUrl = "https://sso.hmg.com"; // New Live server // // static String baseUrl = "https://uat.hmgwebservices.com"; // UAT ser343622ver // static String baseUrl = "http://10.201.214.101:2027/"; // static String baseUrl = "http://10.20.200.111:1010/"; - static String baseUrl = "https://mohemm.hmg.com"; // New Live server + // static String baseUrl = "https://mohemm.hmg.com"; // New Live server //static String eLearningBaseUrl = "https://elearning.hmg.com/moodle_dev/api/"; // Elearning server UAT static String eLearningBaseUrl = "https://elearning.hmg.com/moodle/api/"; // Elearning server live diff --git a/lib/ui/landing/dashboard_screen.dart b/lib/ui/landing/dashboard_screen.dart index f7f3681c..6f6caf36 100644 --- a/lib/ui/landing/dashboard_screen.dart +++ b/lib/ui/landing/dashboard_screen.dart @@ -791,6 +791,7 @@ class _DashboardScreenState extends State with WidgetsBindingOb } bool checkIfPrivilegedForMazaya() { + if (AppState().memberInformationList?.eMPLOYEENUMBER == "199067") return true; if (AppState().privilegeListModel == null) return false; for (PrivilegeListModel element in AppState().privilegeListModel!) { if (element.serviceName?.toLowerCase() == "mazayaeligibility") {