Commit 449b6c51 by Jansa Jose

change in book service

parent 739cf57f
...@@ -1812,6 +1812,7 @@ ...@@ -1812,6 +1812,7 @@
header('Content-type:application/json'); header('Content-type:application/json');
$headers = apache_request_headers(); $headers = apache_request_headers();
$per_page = 10; $per_page = 10;
$total = 0;
$page = (isset($postData['page']) && $postData['page'] != 1) ?$postData['page'] :'1'; $page = (isset($postData['page']) && $postData['page'] != 1) ?$postData['page'] :'1';
$page_limit = ($page - 1) * $per_page; $page_limit = ($page - 1) * $per_page;
$latestResult = $this->Webservice_model->get_latest_product_list(0,0); $latestResult = $this->Webservice_model->get_latest_product_list(0,0);
...@@ -2890,7 +2891,6 @@ ...@@ -2890,7 +2891,6 @@
public function getUserDetails($postData){ public function getUserDetails($postData){
$custResp = $this->Webservice_model->checkSocialCustomerLogin($postData); $custResp = $this->Webservice_model->checkSocialCustomerLogin($postData);
//pr($custResp);
if(isset($custResp['status']) && $custResp['status'] == '2'){ if(isset($custResp['status']) && $custResp['status'] == '2'){
$respArr['message'] = 'User Not Registered Yet'; $respArr['message'] = 'User Not Registered Yet';
$respArr['status'] = '0'; $respArr['status'] = '0';
......
...@@ -755,6 +755,7 @@ class Webservice_model extends CI_Model { ...@@ -755,6 +755,7 @@ class Webservice_model extends CI_Model {
$this->db->query("UPDATE bookings $this->db->query("UPDATE bookings
JOIN transaction ON transaction.booking_id=bookings.booking_id JOIN transaction ON transaction.booking_id=bookings.booking_id
SET bookings.status = $status WHERE transaction.id = $transId"); SET bookings.status = $status WHERE transaction.id = $transId");
$this->db->query("UPDATE mechanic_booking SET status = $status WHERE booking_id =".$bookData->booking_id);
} }
return 1; return 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