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