diff --git a/service/app/api/controller/OrderController.php b/service/app/api/controller/OrderController.php index 8224457a..66bb2606 100644 --- a/service/app/api/controller/OrderController.php +++ b/service/app/api/controller/OrderController.php @@ -35,6 +35,10 @@ class OrderController extends base ->order('id','desc'); $orders = $query->paginate($request->get('limit',10)); + $orders->each(function($order) { + $order->total_price = bcdiv($order->total_price, 100, 2); + $order->actual_price = bcdiv($order->actual_price, 100, 2); + }); $list = $orders->hidden(['check_sn'])->append(['h5_os_status_name', 'h5_os_name' , 'can_book']); return $this->success($list);