@@ -30,21 +30,26 @@ class Webservice_model extends CI_Model {
...
@@ -30,21 +30,26 @@ class Webservice_model extends CI_Model {
functionlogin($data){
functionlogin($data){
try{
try{
$this->db->select("region.id AS city_id,region.name AS city,
$sql="SELECT region.id AS city_id, customer.name AS user_name,customer.phone, customer.email,
customer.name AS user_name,customer.phone,
customer.profile_image AS profile_photo, IF(customer.phone_verified=0,'false', 'true') AS is_phone_verified, IF(customer.city='', 'false', 'true') AS is_location_updated,
customer.email,customer.profile_image AS profile_photo,
users.id AS user_id
IF(customer.phone_verified=0,'false','true') AS is_phone_verified,
FROM users
IF(customer.city='','false','true') AS is_location_updated,
INNER JOIN customer ON (customer.customer_id=users.id)