|
|
@ -10,6 +10,7 @@ use App\Model\App;
|
|
|
|
use App\Service\AppService;
|
|
|
|
use App\Service\AppService;
|
|
|
|
use App\Service\MerchantService;
|
|
|
|
use App\Service\MerchantService;
|
|
|
|
use App\Service\PaymentService;
|
|
|
|
use App\Service\PaymentService;
|
|
|
|
|
|
|
|
use App\Service\RequestService;
|
|
|
|
use App\Service\UserService;
|
|
|
|
use App\Service\UserService;
|
|
|
|
use Hyperf\Command\Annotation\Command;
|
|
|
|
use Hyperf\Command\Annotation\Command;
|
|
|
|
use Hyperf\Command\Command as HyperfCommand;
|
|
|
|
use Hyperf\Command\Command as HyperfCommand;
|
|
|
@ -42,7 +43,7 @@ class MineCommand extends HyperfCommand
|
|
|
|
|
|
|
|
|
|
|
|
public function handle(): void
|
|
|
|
public function handle(): void
|
|
|
|
{
|
|
|
|
{
|
|
|
|
$this->payment();
|
|
|
|
$this->getRequestLog();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
protected function generateToken() {
|
|
|
|
protected function generateToken() {
|
|
|
@ -194,4 +195,16 @@ class MineCommand extends HyperfCommand
|
|
|
|
$result = $userService->pwdModify(['userId' => 'ELF1990'], $this->getApp(), $this->getToken());
|
|
|
|
$result = $userService->pwdModify(['userId' => 'ELF1990'], $this->getApp(), $this->getToken());
|
|
|
|
var_dump($result);
|
|
|
|
var_dump($result);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public function getRequestLog()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* @var RequestService $requestService
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
$requestService = $this->container->make(RequestService::class);
|
|
|
|
|
|
|
|
$requestLog = $requestService->getRequestLogByToken('21a640fdfc8dad25ad44512b22da9324');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$userId = $requestLog->getDataValue('userId');
|
|
|
|
|
|
|
|
var_dump($userId);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|