Account.php 636 B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace app\extra\douyin;
  3. use yzh52521\EasyHttp\Http;
  4. use yzh52521\EasyHttp\Response;
  5. class Account extends Base
  6. {
  7. /**
  8. * 设置订单详情按钮白名单
  9. */
  10. public function setWhiteSetting(string $account = "",int $type = 1,bool $all = false,array $uuid = []): array
  11. {
  12. $param = [
  13. "button_type" => $type,
  14. "open_all" => $all,
  15. ];
  16. if (!$all) {
  17. $param['uid_list'] = $uuid;
  18. }
  19. return Http::asJson()->withHeaders($this->header)->post($this->gateway."api/apps/trade/v2/toolkit/button_white_setting/", $param)->array();
  20. }
  21. }