Commit 9da218c8 by Jansa Jose

get review change

parent 06973ca7
......@@ -1517,6 +1517,9 @@ class Webservice_model extends CI_Model {
}
$review = $this->db->get_where('mechanic_rating',array('mechanic_id'=>$postData['mechanic_id']));
if(!empty($service) && !empty($reviewData = $review->result_array())){
foreach ($reviewData as $key => $value) {
$reviewData[$key]['rate'] = (float)$value['rate'];
}
$respArr['status'] = 'success';
$respArr['message'] = 'success';
$respArr['data']= $reviewData;
......
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