抖音订单详情
This commit is contained in:
parent
a749a52afa
commit
a568f03047
service/app
|
@ -29,6 +29,10 @@ class Test extends Command
|
||||||
*/
|
*/
|
||||||
protected function execute(InputInterface $input, OutputInterface $output): int
|
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'));
|
$encryptStr = (new DyApiService())->encrypt('这是一个测试', env('DY_APPSECRET'));
|
||||||
$output->write('加密字符串:' . $encryptStr);
|
$output->write('加密字符串:' . $encryptStr);
|
||||||
|
|
||||||
|
|
|
@ -364,6 +364,17 @@ class Douyin
|
||||||
return $orderDetail->data ?? null;
|
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
|
* @param string $orderId
|
||||||
* @return array|null
|
* @return array|null
|
||||||
|
|
Loading…
Reference in New Issue