From bf24e24d4655ee4a5a9022381e825e813e31a1f2 Mon Sep 17 00:00:00 2001 From: jianghanbo Date: Mon, 2 Sep 2024 18:43:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service/app/server/Tongcheng.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/app/server/Tongcheng.php b/service/app/server/Tongcheng.php index 1d0dc6cf..91b88855 100644 --- a/service/app/server/Tongcheng.php +++ b/service/app/server/Tongcheng.php @@ -71,7 +71,7 @@ class Tongcheng { $item->travel_date = null; $item->total_price = $order->orderAmount; $item->quantity = $order->productCount; - $item->unit_price = bcdiv($order->orderAmount, $order->productCount, 2); + $item->unit_price = $order->orderAmount/$order->productCount; $item->actual_price = $order->orderAmount; $item->order_status = $order->orderStatus; // 订单状态(100 - 待付款,150-用户取消,200-待使用,205-预约中(抖音),210-已预约(抖音),310-已履约(抖音),300-已完成,400-已关闭) $item->appointment_status = in_array($order->orderStatus, [210, 310, 300]) ? 1 : 0; // 是否已预约