mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
站内消息即时通知,测试断线重连
This commit is contained in:
1 parent
a93da2badb
commit
900e19382b
14 files changed
+120
-46
No files matched your search
@@ -6,7 +6,8 @@ import pwhash from '../lib/hash.hydro';
|
||||
export const description = 'Install';
|
||||
|
||||
export async function run({ username = '', password = '' } = {}) {
|
||||
await domain.add('system', 0, 'Hydro', 'Hydro System');
|
||||
const ddoc = await domain.get('system');
|
||||
if (!ddoc) await domain.add('system', 0, 'Hydro', 'Hydro System');
|
||||
if (username && password) {
|
||||
const udoc = await user.getById('system', -1);
|
||||
if (!udoc) {
|
||||
|
||||
Reference in new issue
Block a user