CHANGE_API_RESPONSE : RV
This commit is contained in:
parent
4110880828
commit
4f24ce9343
@ -292,7 +292,7 @@ class RestAuthenticationController extends AdminController
|
|||||||
// print_r($empdata); die;
|
// print_r($empdata); die;
|
||||||
|
|
||||||
if(empty($empdata)){
|
if(empty($empdata)){
|
||||||
return $this->respond(['status' => 'failed','code' => 404,'data' => "Invalid OTP"],200);
|
return $this->respond(['status' => 'failed','code' => 404,'data' => []],200);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($mobile_number))
|
if (isset($mobile_number))
|
||||||
@ -370,12 +370,12 @@ class RestAuthenticationController extends AdminController
|
|||||||
|
|
||||||
// Call the third-party API function
|
// Call the third-party API function
|
||||||
$apiResponse = $this->callThirdPartyAPI($requestData,'getVerifiedUserData');
|
$apiResponse = $this->callThirdPartyAPI($requestData,'getVerifiedUserData');
|
||||||
return $this->respond(['status' => 'failed','code' => 404,'data' => "Invalid OTP" , 'post_enrollment'=> json_decode($apiResponse, true)],200);
|
return $this->respond(['status' => 'failed','code' => 404,'data' => [] , 'post_enrollment'=> json_decode($apiResponse, true)],200);
|
||||||
|
|
||||||
}
|
}
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
$this->myLogger->logme("error", ($e->getMessage().' --- '.$e->getLine()));
|
$this->myLogger->logme("error", ($e->getMessage().' --- '.$e->getLine()));
|
||||||
return $this->respond(['status' => 'failed','code' => 500,'data' => $e->getMessage()],500);
|
return $this->respond(['status' => 'failed','code' => 500,'data' =>[], 'error' => $e->getMessage()],500);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user