Commit afebd415 by Jansa Jose

change in doctor booking

parent 49e44820
...@@ -1186,7 +1186,7 @@ class Webservice extends CI_Controller { ...@@ -1186,7 +1186,7 @@ class Webservice extends CI_Controller {
if(isset($headers['Auth']) && strlen($headers['Auth'])){ if(isset($headers['Auth']) && strlen($headers['Auth'])){
$check_authToken = $this->Webservice_model->check_auth_token($headers['Auth']); $check_authToken = $this->Webservice_model->check_auth_token($headers['Auth']);
if($check_authToken){ if($check_authToken){
if(isset($data['doctor_id']) && strlen($data['doctor_id']) && isset($data['clinic_id']) && strlen($data['clinic_id']) && isset($data['date']) && strlen($data['date']) && isset($data['time']) && strlen($data['time']) && isset($data['amount']) && strlen($data['amount']) && isset($data['booking_status']) && strlen($data['booking_status'])){ if(isset($data['doctor_id']) && strlen($data['doctor_id']) && isset($data['clinic_id']) && strlen($data['clinic_id']) && isset($data['date']) && strlen($data['date']) && isset($data['time']) && strlen($data['time']) && isset($data['amount']) && strlen($data['amount']) /*&& isset($data['booking_status']) && strlen($data['booking_status'])*/) {
$result = $this->Webservice_model->doctor_booking($data,$headers['Auth']); $result = $this->Webservice_model->doctor_booking($data,$headers['Auth']);
if($result['status'] == 'success'){ if($result['status'] == 'success'){
...@@ -1210,7 +1210,7 @@ class Webservice extends CI_Controller { ...@@ -1210,7 +1210,7 @@ class Webservice extends CI_Controller {
$res = array( $res = array(
"status"=> "error", "status"=> "error",
"error"=> "required", "error"=> "required",
"message"=> "Doctor id or date or time or amount or booking status are required" "message"=> "All Field is required"
); );
} }
} }
......
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