同程订单调整

This commit is contained in:
jianghanbo 2024-12-23 17:43:05 +08:00
parent 414d30311c
commit 005e0f2289
2 changed files with 6 additions and 0 deletions

View File

@ -218,6 +218,9 @@ class SpiderTc extends Command
$item = Orders::where('os', $order->os)->where('sn', $order->sn)->find(); $item = Orders::where('os', $order->os)->where('sn', $order->sn)->find();
if (empty($item)) { if (empty($item)) {
if ($item->orderStatus == 400) {
continue;
}
$order->is_zhibo = 2; $order->is_zhibo = 2;
$oldMobile = orders::where("os", $order->os)->where("mobile", $order->mobile) $oldMobile = orders::where("os", $order->os)->where("mobile", $order->mobile)

View File

@ -81,6 +81,9 @@ class Tongcheng {
$item->order_status = $order->orderStatus; // 订单状态(100 - 待付款150-用户取消200-待使用205-预约中抖音210-已预约抖音310-已履约抖音300-已完成400-已关闭) $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; // 是否已预约 $item->appointment_status = in_array($order->orderStatus, [210, 310, 300]) ? 1 : 0; // 是否已预约
if ($item->orderStatus == 400) {
$item->is_refunded = 1;
}
$item->asset_status = $order->status ?? 0; // 核销状态 $item->asset_status = $order->status ?? 0; // 核销状态
$item->asset_price = $order->orderStatus == 300 ? $order->orderAmount : 0; // 核销金额 $item->asset_price = $order->orderStatus == 300 ? $order->orderAmount : 0; // 核销金额
//抖音的核销金额需要查核销订单 //抖音的核销金额需要查核销订单