Commit 10d2ae9b by Jansa Jose

dc

parent 4489a059
...@@ -2837,7 +2837,7 @@ ...@@ -2837,7 +2837,7 @@
$post = file_get_contents("php://input"); $post = file_get_contents("php://input");
$postData = json_decode($post, true); $postData = json_decode($post, true);
$this->load->model('Customer_model'); $this->load->model('Customer_model');
$respArr = array('status'=>'error','message'=>'Something went wrong.'); $respArr = array('status'=>'0','message'=>'Something went wrong.');
if(empty($postData)){ if(empty($postData)){
echo json_encode($respArr);exit; echo json_encode($respArr);exit;
} }
...@@ -2903,7 +2903,10 @@ ...@@ -2903,7 +2903,10 @@
public function getUserDetails($postData){ public function getUserDetails($postData){
$custResp = $this->Webservice_model->checkSocialCustomerLogin($postData); $custResp = $this->Webservice_model->checkSocialCustomerLogin($postData);
if(empty($custResp) || !isset($custResp['status']) || empty($custResp['status'])){ //pr($custResp);
if(isset($custResp['status']) && $custResp['status'] == '2'){
$respArr['message'] = 'User Not Registered Yet';
$respArr['status'] = '0';
return $respArr ; return $respArr ;
} }
if($custResp['status'] == '1'){ if($custResp['status'] == '1'){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment