Fix Dubai user issues

merge-requests/663/head
Mohammad Aljammal 5 years ago
parent d932934a1b
commit 8399677a0a

@ -67,10 +67,12 @@ class BaseAppClient {
await sharedPref.getString(VIDA_REFRESH_TOKEN_ID); await sharedPref.getString(VIDA_REFRESH_TOKEN_ID);
} }
if (body['ProjectID'] != null && int projectID = await sharedPref.getInt(PROJECT_ID);
(body['ProjectID'] == 2 || body['ProjectID'] == 3)) { if(projectID ==2 || projectID == 3)
body['PatientOutSA'] = true; body['PatientOutSA'] = true;
} else
body['PatientOutSA'] = false;
body['DeviceTypeID'] = Platform.isAndroid ? 1 : 2; body['DeviceTypeID'] = Platform.isAndroid ? 1 : 2;
print("URL : $url"); print("URL : $url");
print("Body : ${json.encode(body)}"); print("Body : ${json.encode(body)}");
@ -193,10 +195,11 @@ class BaseAppClient {
body['PatientOutSA'] = 0; //user['OutSA']; //TODO change it body['PatientOutSA'] = 0; //user['OutSA']; //TODO change it
body['SessionID'] = SESSION_ID; //getSe body['SessionID'] = SESSION_ID; //getSe
if (body['ProjectID'] != null && int projectID = await sharedPref.getInt(PROJECT_ID);
(body['ProjectID'] == 2 || body['ProjectID'] == 3)) { if(projectID ==2 || projectID == 3)
body['PatientOutSA'] = true; body['PatientOutSA'] = true;
} else
body['PatientOutSA'] = false;
print("URL : $url"); print("URL : $url");
print("Body : ${json.encode(body)}"); print("Body : ${json.encode(body)}");

Loading…
Cancel
Save