public function GetProduct($param)
 {
     $data = parent::GetProductProcess($param);
     $this->id = $data['pd_id'];
     $this->parent = $data['pd_parent'];
     $this->parent_title = $data['parent_title'];
     $this->code = $data['pd_code'];
     $this->title = $data['pd_title'];
     $this->description = $data['pd_description'];
     $this->quantity = $data['pd_quantity'];
     $this->price = $data['pd_price'];
     $this->view = $data['pd_view'];
     $this->read = $data['pd_read'];
     if ($this->view == 0) {
         $this->interest_ratio = 0;
     } else {
         $this->interest_ratio = $this->read * 100 / $this->view;
     }
     $this->create_time = $data['pd_create_time'];
     $this->update_time = $data['pd_update_time'];
     $this->group = $data['pd_group'];
     $this->type = $data['pd_type'];
     $this->status = $data['pd_status'];
     $this->image_id = $data['im_id'];
     $this->image_filename = $data['im_filename'];
     $this->image_format = $data['im_format'];
     $this->total_in_order = $data['total_in_order'];
 }
 public function ExportJson($product_id, $current_order_id)
 {
     $dataset = parent::GetProductProcess(array('product_id' => $product_id, 'order_id' => $current_order_id));
     $data = array("apiVersion" => "1.0", "data" => array("time_now" => date('Y-m-d H:i:s'), "message" => 'message', "execute" => round(microtime(true) - StTime, 4) . "s", "totalFeeds" => floatval(count($dataset)), "items" => $dataset));
     // JSON Encode and Echo.
     echo json_encode($data);
 }