diff --git a/service/app/server/Douyin.php b/service/app/server/Douyin.php index 36e4d2b7..06b92b57 100644 --- a/service/app/server/Douyin.php +++ b/service/app/server/Douyin.php @@ -190,8 +190,8 @@ class Douyin $item->asset_status = $order->status ?? 0; $item->category_desc = $order->sku->title; $item->asset_price = $order->amount->verify_amount ?? 0; + $item->is_refunded = $order->order_status == 4 ? 1 : 0; // 是否已退款(1-已退款,0-未退款) //抖音的核销金额需要查核销订单 - if ($item->create_at < strtotime('2024-05-22') * 1000) { $this->totalPage = 1; break; diff --git a/service/app/server/Meituan.php b/service/app/server/Meituan.php index ab3bf888..573e4922 100644 --- a/service/app/server/Meituan.php +++ b/service/app/server/Meituan.php @@ -108,6 +108,7 @@ class Meituan { $item->category_desc = $order->categoryDesc; $item->is_zhibo = $order->bizOrderChannel == 5 ? 1 : 0; // 是否直播(5-视频号,3-小程序) $item->asset_price = $order->orderStatus == 4 ? $order->totalPrice: 0; //已核销订单,核销金额为订单金额 + $item->is_refunded = $order->order_status == 5 ? 1 : 0; // 是否已退款(1-已退款,0-未退款) $_list[] = $item; }