From d1336eec8b71b3b1e28946a4324529416f5a9516 Mon Sep 17 00:00:00 2001 From: Sultan Khan Date: Fri, 13 Nov 2020 07:01:57 +0300 Subject: [PATCH] login type --- lib/config/config.dart | 4 ++-- lib/core/service/client/base_app_client.dart | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/config/config.dart b/lib/config/config.dart index c4ac1bdb..efb15b36 100644 --- a/lib/config/config.dart +++ b/lib/config/config.dart @@ -6,8 +6,8 @@ import 'package:diplomaticquarterapp/widgets/mobile-no/mobile_no.dart'; const MAX_SMALL_SCREEN = 660; -const BASE_URL = 'https://uat.hmgwebservices.com/'; -//const BASE_URL = 'https://hmgwebservices.com/'; +//const BASE_URL = 'https://uat.hmgwebservices.com/'; +const BASE_URL = 'https://hmgwebservices.com/'; const GET_PROJECT = 'Services/Lists.svc/REST/GetProject'; ///Doctor diff --git a/lib/core/service/client/base_app_client.dart b/lib/core/service/client/base_app_client.dart index 0d2dda35..da8b6ad6 100644 --- a/lib/core/service/client/base_app_client.dart +++ b/lib/core/service/client/base_app_client.dart @@ -70,7 +70,7 @@ class BaseAppClient { ? body['PatientType'] : user['PatientType'] != null ? user['PatientType'] - : null + : PATIENT_TYPE : PATIENT_TYPE; body['PatientTypeID'] = body.containsKey('PatientTypeID') @@ -78,7 +78,7 @@ class BaseAppClient { ? body['PatientTypeID'] : user['PatientTypeID'] != null ? user['PatientTypeID'] - : null + : PATIENT_TYPE_ID : PATIENT_TYPE_ID; if (user != null) { body['TokenID'] = token;