| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <?php
- namespace app\extra\douyin;
- use app\extra\tools\CodeExtend;
- use yzh52521\EasyHttp\Http;
- class Order extends Base
- {
- public function getOrderDetail(array $orderList = [])
- {
- $param = [
- "order_id_list" => $orderList,
- ];
- return Http::asJson()->withHeaders($this->header)->post($this->gateway."api/apps/trade/v2/toolkit/query_certificate_info/", $param)->array();
- }
- /**
- * 加锁、解锁
- * @param int $state 1:解锁,2:加锁
- * @return array
- */
- public function orderLock(int $state = 1,string $order_id = "",string $certificate_id = "",string $lock_key = "",string $start = "",string $end = ""): array
- {
- $param = [
- "operation_type" => $state, // 1解锁,2加锁
- "order_info_list" => [
- [
- "certificate_info_list" => [
- [
- "certificate_id"=> $certificate_id
- ]
- ],
- "lock_key" => $lock_key,
- "order_id" => $order_id
- ]
- ]
- ];
- return Http::asJson()->withHeaders($this->header)->post($this->gateway."api/apps/trade/v2/toolkit/change_lock_status/",$param)->array();
- }
- }
|