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; // 是否已预约