Commit 000426c4 by Jansa Jose

Merge branch 'master' into 'dev_production'

upadte ride status See merge request !59
parents ef6642f2 893ae2b1
......@@ -263,7 +263,7 @@
}
##################################### Profile Update ###############################################
##################################### Profile Update ##################################
public function update_profile_post(){
......@@ -290,7 +290,7 @@
##################################### Profile Pic upadate ###########################################
##################################### Profile Pic upadate ##############################
......@@ -368,7 +368,7 @@
########################################################################################################
##########################################################################################
......@@ -422,7 +422,7 @@
}
###################################################################################################
###########################################################################################
public function get_users_car_list_post(){
......@@ -674,10 +674,9 @@
$headings = array(
"en" => 'Ride'
);
// var_dump(array($result['player_id']));
// var_dump($content);
$type='ride_alert';
//die;
$include_player_ids = array($rs->player_id);
$res= $this->send_Message($content,$headings,$include_player_ids,$result,$type,$id);
......@@ -2444,7 +2443,7 @@
$ress= $this->send_Message($content,$headings,$include_player_ids,$res,$type,$id);
$data['email'] = $res->email;
$data['subject'] = 'Booking Rejected';
$data['subject'] = 'Booking Rejected - Tukkibi';
$data['msg'] = 'Hi '.$res->first_name.', Your Request is Rejected.';
$this->send_mails($data);
$return = $ress;
......@@ -2467,7 +2466,7 @@
$ress= $this->send_Message($content,$headings,$include_player_ids,$res,$type,$id);
$data['email'] = $res->email;
$data['subject'] = 'Booking Approved';
$data['subject'] = 'Booking Approved - Tukkibi';
$data['msg'] = 'Hi '.$res->first_name.', Your Request is Approved.';
$this->send_mails($data);
$return = $ress;
......@@ -2549,7 +2548,6 @@
$request = json_decode($postdata);
if($request){
$result=$this->Webservice_model->get_verification_details($request);
//echo $this->db->last_query();
if($result){
$result->verify_status=$result->status;
$response=array('status' => 'success','data'=>$result,'message'=>'sucess');
......
......@@ -1598,6 +1598,7 @@ function booking_aproval($request){
}
public function update_ride_status($data){
print_r($data->status);exit();
if($this->db->update('ride',array('ride_status'=>$data->status),array('id'=>$data->ride_id))){
if($this->db->update('booking',array('status'=>$data->status),array('ride_id'=>$data->ride_id))){
return true;
......
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