Skip to content

Commit 197c33f

Browse files
authored
修复问题
1 parent 18c6e40 commit 197c33f

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/Command/JwtCommand.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@ protected function execute(Input $input, Output $output)
3636
$file->addComment('Jwt 配置');
3737
$file->setStrictTypes();
3838

39-
$config = config('jwt.apps.admin');
40-
$config['token']['signerKey'] = randomKey();
39+
$config = config('jwt');
40+
$default = $config['default'];
41+
$config['apps'][$default]['token']['signerKey'] = randomKey();
4142
$config = 'return ' . Helpers::dump($config) . ';';
4243

4344
file_put_contents($this->app->getConfigPath() . 'jwt.php', $file . $config);

0 commit comments

Comments
 (0)