mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 11:11:39 +09:00
Implement admin config screen for Queue
This commit is contained in:
parent
d8370ff59b
commit
a2a1f3bcc6
6 changed files with 278 additions and 2 deletions
|
|
@ -53,7 +53,7 @@ class Redis implements QueueInterface
|
|||
*/
|
||||
public static function getOptionalConfig(): array
|
||||
{
|
||||
return ['user', 'pass', 'dbnum'];
|
||||
return ['dbnum', 'user', 'pass'];
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -89,7 +89,7 @@ class Redis implements QueueInterface
|
|||
$this->_conn->select(intval($config['dbnum']));
|
||||
}
|
||||
|
||||
$this->_key = 'RXQUEUE_' . substr(sha1(\RX_BASEDIR), 0, 16);
|
||||
$this->_key = 'rxQueue_' . substr(hash_hmac('sha1', 'rxQueue_', config('crypto.authentication_key')), 0, 24);
|
||||
}
|
||||
catch (\RedisException $e)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue