From 56302cc6f78d0e0599e22e4f04c66cc96ed1e7f6 Mon Sep 17 00:00:00 2001 From: jianghanbo Date: Tue, 22 Oct 2024 19:17:09 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A2=E5=8D=95=E9=87=91=E9=A2=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service/app/api/controller/OrderController.php | 4 ++++ 1 file changed, 4 insertions(+) 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);