比赛功能也太难写了

This commit is contained in:
masnn committed 2020-04-12 08:59:05 +08:00
1 parent f73859a42f
commit 32ad47e031
16 files changed
+195 -176

No files matched your search

+7 -1
View File
@@ -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
};