Commit 3504389f by Jansa Jose

get reviews

parent f78020df
...@@ -2752,7 +2752,7 @@ public function end_ride_update_post(){ ...@@ -2752,7 +2752,7 @@ public function end_ride_update_post(){
$data = (array) json_decode(file_get_contents("php://input")); $data = (array) json_decode(file_get_contents("php://input"));
if(isset($data['user_id']) && strlen($data['user_id'])){ if(isset($data['user_id']) && strlen($data['user_id'])){
$result = $this->Webservice_model->get_reviews($data); $result = $this->Webservice_model->get_reviews($data);
if($result){ if($result['status'] == 'success'){
$res = array('status'=>'success','data'=>$result['data']); $res = array('status'=>'success','data'=>$result['data']);
}else{ }else{
$res = array('status'=>'failed'); $res = array('status'=>'failed');
......
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