服务器指令文档

This commit is contained in:
jie 2024-11-04 00:02:20 +08:00
parent 0fa23009ad
commit 182e672086

3
document/command.json Normal file
View File

@ -0,0 +1,3 @@
{
"建筑":"storage.db['rooms.objects'].find({ type: 'constructionSite' }).then(resp => resp.map(cs => storage.db['rooms.objects'].findOne({ _id: cs._id }).then(csDetail => storage.db['rooms.objects'].update({_id: cs._id }, {$set: { progress: csDetail.progressTotal - 1 }}))))"
}