From 95b9b5ea9ec5d86da5cc70155c74657c2573fc79 Mon Sep 17 00:00:00 2001 From: ljl Date: Wed, 20 Sep 2023 10:17:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Command/MineCommand.php | 2 +- test.php | 51 ++++++++++++++++++++++++++++++++++++- 2 files changed, 51 insertions(+), 2 deletions(-) diff --git a/app/Command/MineCommand.php b/app/Command/MineCommand.php index dad5539..f90eba6 100644 --- a/app/Command/MineCommand.php +++ b/app/Command/MineCommand.php @@ -46,7 +46,7 @@ class MineCommand extends HyperfCommand public function handle(): void { - $this->unbindWithdrawEntrust(); + $this->transferWithdraw(); return; $this->getBalance(); $this->getRequestData(); diff --git a/test.php b/test.php index 945cccc..84a89e7 100644 --- a/test.php +++ b/test.php @@ -102,4 +102,53 @@ const STATUS_APPLY_FAILED = 'APPLY_FAILED'; // 申请成功 const STATUS_REFUND = 'REFUND'; // 已退款 const STATUS_PROCESS = 'PROCESS'; // 处理中 const STATUS_SUCCESS = 'SUCCESS'; // 成功 -const STATUS_FAILED = 'FAILED'; // 失败 \ No newline at end of file +const STATUS_FAILED = 'FAILED'; // 失败 + + +/** + * 委托提现授权 + * url: payment/sign-withdraw-entrust + * + */ +$data = [ + 'userId' => 'ELF1990', +]; +/* +同步返回结果data: +{ + "url": "xxxxxxxx", +} +*/ + +/** + * 解除委托提现授权 + * url: payment/unbind-withdraw-entrust + * + */ +$data = [ + 'userId' => 'ELF1990', +]; +/* +同步返回结果data: +{ + "url": "xxxxxxxx", +} +*/ + +/** + * 委托提现授权结果查询 + * url: payment/query-sign-entrust + * + */ +$data = [ + 'userId' => 'ELF1990', +]; +/* +同步返回结果data: +{ + "result": true, +} +*/ + +// 委托提现接口同提现接口: payment/withdraw +// 新增参数 withdrawType (normal: 普通提现(默认) entrust: 委托授权提现) \ No newline at end of file