rating系统(测试

This commit is contained in:
masnn committed 2020-06-07 15:38:38 +08:00
1 parent 508f5644c3
commit 4aa1c9fe1f
7 files changed
+131 -5

No files matched your search

+8 -2
View File
@@ -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();