mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
rating系统(测试
This commit is contained in:
1 parent
508f5644c3
commit
4aa1c9fe1f
7 files changed
+131
-5
No files matched your search
+8
-2
@@ -263,10 +263,16 @@ async function load() {
|
||||
const notfound = require('./handler/notfound');
|
||||
await notfound.apply();
|
||||
for (const i in global.Hydro.service) {
|
||||
if (global.Hydro.service[i].postInit) await global.Hydro.service[i].postInit();
|
||||
if (global.Hydro.service[i].postInit) {
|
||||
try {
|
||||
await global.Hydro.service[i].postInit();
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
const builtinScript = [
|
||||
'install', 'uninstall',
|
||||
'install', 'uninstall', 'rating',
|
||||
];
|
||||
for (const i of builtinScript) require(`./script/${i}`);
|
||||
await script();
|
||||
|
||||
Reference in new issue
Block a user