mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 09:46:28 +08:00
rating系统(测试
This commit is contained in:
1 parent
508f5644c3
commit
4aa1c9fe1f
7 files changed
+131
-5
No files matched your search
@@ -81,7 +81,6 @@ class SystemSettingHandler extends SystemHandler {
|
||||
const s = setting.SYSTEM_SETTINGS_BY_KEY[`${key}.${sub}`];
|
||||
if (s) {
|
||||
if (s.ui === 'number') args[key][sub] = Number(args[key][sub]);
|
||||
console.log(s);
|
||||
subtasks.push(system.set(`${key}.${sub}`, args[key][sub]));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -25,7 +25,6 @@ class RecordListHandler extends RecordHandler {
|
||||
];
|
||||
}
|
||||
const rdocs = await record.getMany(domainId, q, { _id: -1 }, page, await system.get('RECORD_PER_PAGE'));
|
||||
console.log(rdocs);
|
||||
const [udict, pdict] = await Promise.all([
|
||||
user.getList(domainId, rdocs.map((rdoc) => rdoc.uid)),
|
||||
problem.getList(domainId, rdocs.map((rdoc) => rdoc.pid), false),
|
||||
|
||||
Reference in new issue
Block a user