This commit is contained in:
jianghanbo 2024-09-02 18:43:16 +08:00
parent a1b397720b
commit bf24e24d46
1 changed files with 1 additions and 1 deletions

View File

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