From 61821ed2988166f27fc1d561108b2060eb6ea600 Mon Sep 17 00:00:00 2001 From: ljl Date: Wed, 20 Sep 2023 10:21:15 +0800 Subject: [PATCH] yh --- app/Command/MineCommand.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/app/Command/MineCommand.php b/app/Command/MineCommand.php index 5c5328f..b33dc4d 100644 --- a/app/Command/MineCommand.php +++ b/app/Command/MineCommand.php @@ -46,7 +46,7 @@ class MineCommand extends HyperfCommand public function handle(): void { - $this->signWithdrawEntrust(); + $this->querySignEntrust(); return; $this->getBalance(); $this->getRequestData(); @@ -549,4 +549,13 @@ class MineCommand extends HyperfCommand $url = $userService->signWithdrawEntrust(['userId' => $userId], $this->getApp(), $this->getToken()); echo $url; } + + protected function querySignEntrust($userId = 'ELF1990') { + /** + * @var UserService $userService + */ + $userService = $this->container->make(UserService::class); + $url = $userService->querySignEntrust(['userId' => $userId], $this->getApp(), $this->getToken()); + echo $url; + } } \ No newline at end of file