From 005e0f22890368e896778a6a864c6dcdd4f48cd5 Mon Sep 17 00:00:00 2001 From: jianghanbo Date: Mon, 23 Dec 2024 17:43:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E7=A8=8B=E8=AE=A2=E5=8D=95=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service/app/command/SpiderTc.php | 3 +++ service/app/server/Tongcheng.php | 3 +++ 2 files changed, 6 insertions(+) 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; // 核销金额 //抖音的核销金额需要查核销订单