master
elf 1 year ago
parent fe9954a58b
commit 7364e310c3

@ -42,7 +42,9 @@ class MineCommand extends HyperfCommand
public function handle(): void public function handle(): void
{ {
$this->pwdModify(); $merchant = $this->createMerchant();
$app = $this->createApp($merchant, '艺小吧');
var_dump($app->toArray());
} }
protected function generateToken() { protected function generateToken() {
@ -57,8 +59,8 @@ class MineCommand extends HyperfCommand
return $merchantService->createMerchant([ return $merchantService->createMerchant([
'username' => 'main', 'username' => 'main',
'password' => StringHelper::getRandomString('10'), 'password' => StringHelper::getRandomString('10'),
'email' => '360197197@qq.com', 'email' => '1427419924@qq.com',
'mobile' => '18760419185', 'mobile' => '17788888525',
'ip' => '127.0.0.1' 'ip' => '127.0.0.1'
]); ]);
} }

Loading…
Cancel
Save