From a568f03047765b84be6491b06974e56d147ec79d Mon Sep 17 00:00:00 2001
From: jianghanbo <jhba001200>
Date: Fri, 28 Mar 2025 14:11:34 +0800
Subject: [PATCH] =?UTF-8?q?=E6=8A=96=E9=9F=B3=E8=AE=A2=E5=8D=95=E8=AF=A6?=
 =?UTF-8?q?=E6=83=85?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 service/app/command/Test.php  |  4 ++++
 service/app/server/Douyin.php | 11 +++++++++++
 2 files changed, 15 insertions(+)

diff --git a/service/app/command/Test.php b/service/app/command/Test.php
index c59ab2e2..717006e1 100644
--- a/service/app/command/Test.php
+++ b/service/app/command/Test.php
@@ -29,6 +29,10 @@ class Test extends Command
      */
     protected function execute(InputInterface $input, OutputInterface $output): int
     {
+        $dyService = new Douyin(5);
+        $orderDetail = $dyService->_orderDetailV2('1083861553977945710', '');
+        $output->writeln('order_detail:' . json_encode($orderDetail));
+        return 0 ;
         $encryptStr = (new DyApiService())->encrypt('这是一个测试', env('DY_APPSECRET'));
         $output->write('加密字符串:' . $encryptStr);
 
diff --git a/service/app/server/Douyin.php b/service/app/server/Douyin.php
index b4873d5e..cb75577c 100644
--- a/service/app/server/Douyin.php
+++ b/service/app/server/Douyin.php
@@ -364,6 +364,17 @@ class Douyin
         return $orderDetail->data ?? null;
     }
 
+    public function _orderDetailV2($orderId = null, $status = null)
+    {
+        $orderDetail = $this->_curl("/life/trade_view/v1/travel_agency/book/detail", [
+            'order_id' => $orderId,
+            'book_order_id' => '',
+            'status' => $status,
+            'root_life_account_id' => $this->_id($this->os)
+        ]);
+        return $orderDetail->data ?? null;
+    }
+
     /**
      * @param string $orderId
      * @return array|null