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
f73859a42f
commit
32ad47e031
16 files changed
+195
-176
No files matched your search
@@ -85,6 +85,11 @@ async function random(query) {
|
||||
return pdoc.pid;
|
||||
} else return null;
|
||||
}
|
||||
async function getList(pids) {
|
||||
let r = {};
|
||||
for (let pid of pids) r[pid] = await get({pid});
|
||||
return r;
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
add,
|
||||
@@ -94,5 +99,6 @@ module.exports = {
|
||||
count,
|
||||
random,
|
||||
getById,
|
||||
getMulti
|
||||
getMulti,
|
||||
getList
|
||||
};
|
||||
Reference in new issue
Block a user