同程订单调整
This commit is contained in:
parent
414d30311c
commit
005e0f2289
|
@ -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)
|
||||||
|
|
|
@ -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; // 核销金额
|
||||||
//抖音的核销金额需要查核销订单
|
//抖音的核销金额需要查核销订单
|
||||||
|
|
Loading…
Reference in New Issue