|
|
|
@ -219,7 +219,7 @@ class LoginApiClient {
|
|
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> postParams = {
|
|
|
|
Map<String, dynamic> postParams = {
|
|
|
|
"VersionID": versionId ?? 5,
|
|
|
|
"VersionID": versionId ?? 5,
|
|
|
|
"Channel": channel ?? 31,
|
|
|
|
"Channel": channel,
|
|
|
|
"LanguageID": context != null ? AppState().getLanguageID(context) : 2,
|
|
|
|
"LanguageID": context != null ? AppState().getLanguageID(context) : 2,
|
|
|
|
"MemberType": memberType ?? 1,
|
|
|
|
"MemberType": memberType ?? 1,
|
|
|
|
"MobileType": devType,
|
|
|
|
"MobileType": devType,
|
|
|
|
@ -411,8 +411,6 @@ class LoginApiClient {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> postParams = {
|
|
|
|
Map<String, dynamic> postParams = {
|
|
|
|
"VersionID": 20,
|
|
|
|
|
|
|
|
"Channel": 31,
|
|
|
|
|
|
|
|
"LanguageID": context != null ? AppState().getLanguageID(context) : 2,
|
|
|
|
"LanguageID": context != null ? AppState().getLanguageID(context) : 2,
|
|
|
|
"DeviceToken": devToken,
|
|
|
|
"DeviceToken": devToken,
|
|
|
|
"DeviceType": devType,
|
|
|
|
"DeviceType": devType,
|
|
|
|
@ -448,8 +446,6 @@ class LoginApiClient {
|
|
|
|
AppState().setUserName = nationalId;
|
|
|
|
AppState().setUserName = nationalId;
|
|
|
|
AppState().postParamsObject?.setUserName = nationalId;
|
|
|
|
AppState().postParamsObject?.setUserName = nationalId;
|
|
|
|
AppState().postParamsObject?.setPUserName = nationalId;
|
|
|
|
AppState().postParamsObject?.setPUserName = nationalId;
|
|
|
|
AppState().postParamsObject?.channel = 31;
|
|
|
|
|
|
|
|
AppState().postParamsObject?.versionID = 20;
|
|
|
|
|
|
|
|
return responseData;
|
|
|
|
return responseData;
|
|
|
|
}, url, postParams);
|
|
|
|
}, url, postParams);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -465,7 +461,6 @@ class LoginApiClient {
|
|
|
|
String? sig = smsSignature ?? await getSignature();
|
|
|
|
String? sig = smsSignature ?? await getSignature();
|
|
|
|
Map<String, dynamic> postParams = {
|
|
|
|
Map<String, dynamic> postParams = {
|
|
|
|
"VersionID": 20,
|
|
|
|
"VersionID": 20,
|
|
|
|
"Channel": 31,
|
|
|
|
|
|
|
|
"LanguageID": context != null ? AppState().getLanguageID(context) : 2,
|
|
|
|
"LanguageID": context != null ? AppState().getLanguageID(context) : 2,
|
|
|
|
"MobileType": Platform.isAndroid ? "android" : "ios",
|
|
|
|
"MobileType": Platform.isAndroid ? "android" : "ios",
|
|
|
|
"OTP_SendType": 1,
|
|
|
|
"OTP_SendType": 1,
|
|
|
|
@ -498,8 +493,6 @@ class LoginApiClient {
|
|
|
|
"P_USER_NAME": nationalId,
|
|
|
|
"P_USER_NAME": nationalId,
|
|
|
|
"P_DEP_NATIONAL_ID": nationalId,
|
|
|
|
"P_DEP_NATIONAL_ID": nationalId,
|
|
|
|
"MobileNumber": mobileNumber,
|
|
|
|
"MobileNumber": mobileNumber,
|
|
|
|
"VersionID": 20,
|
|
|
|
|
|
|
|
"Channel": 31,
|
|
|
|
|
|
|
|
"LanguageID": context != null ? AppState().getLanguageID(context) : 2,
|
|
|
|
"LanguageID": context != null ? AppState().getLanguageID(context) : 2,
|
|
|
|
"MobileType": Platform.isAndroid ? "android" : "ios",
|
|
|
|
"MobileType": Platform.isAndroid ? "android" : "ios",
|
|
|
|
};
|
|
|
|
};
|
|
|
|
@ -517,8 +510,6 @@ class LoginApiClient {
|
|
|
|
AppState().postParamsObject?.setUserName = nationalId;
|
|
|
|
AppState().postParamsObject?.setUserName = nationalId;
|
|
|
|
AppState().postParamsObject?.setPUserName = nationalId;
|
|
|
|
AppState().postParamsObject?.setPUserName = nationalId;
|
|
|
|
AppState().postParamsObject?.setMobileNumer = mobileNumber;
|
|
|
|
AppState().postParamsObject?.setMobileNumer = mobileNumber;
|
|
|
|
AppState().postParamsObject?.channel = 31;
|
|
|
|
|
|
|
|
AppState().postParamsObject?.versionID = 20;
|
|
|
|
|
|
|
|
AppState().setUserName = nationalId;
|
|
|
|
AppState().setUserName = nationalId;
|
|
|
|
AppState().isAuthenticated = true;
|
|
|
|
AppState().isAuthenticated = true;
|
|
|
|
AppState().setLogged = true;
|
|
|
|
AppState().setLogged = true;
|
|
|
|
|