diff --git a/service/app/command/SpiderTc.php b/service/app/command/SpiderTc.php index e3e0d8be..ae34d54b 100644 --- a/service/app/command/SpiderTc.php +++ b/service/app/command/SpiderTc.php @@ -218,6 +218,9 @@ class SpiderTc extends Command $item = Orders::where('os', $order->os)->where('sn', $order->sn)->find(); if (empty($item)) { + if ($item->orderStatus == 400) { + continue; + } $order->is_zhibo = 2; $oldMobile = orders::where("os", $order->os)->where("mobile", $order->mobile) diff --git a/service/app/server/Tongcheng.php b/service/app/server/Tongcheng.php index f9cd540d..d0974487 100644 --- a/service/app/server/Tongcheng.php +++ b/service/app/server/Tongcheng.php @@ -81,6 +81,9 @@ class Tongcheng { $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; // 是否已预约 + if ($item->orderStatus == 400) { + $item->is_refunded = 1; + } $item->asset_status = $order->status ?? 0; // 核销状态 $item->asset_price = $order->orderStatus == 300 ? $order->orderAmount : 0; // 核销金额 //抖音的核销金额需要查核销订单