助力箱子, 将生成的箱子返回给客户端

This commit is contained in:
CounterFire2023 2024-03-27 13:58:43 +08:00
parent 563e12ef0a
commit 030ab5f0ab

View File

@ -113,9 +113,14 @@ class BoxController extends BaseController {
if (chestsForUser.length === 0) {
const newChest = generateNewChest(uid, user.activity, 1, ChestStatusEnum.LOCKED)
await newChest.save()
}
return {
score,
return {
score: 0,
chests: [newChest.toJson()],
}
} else {
return {
score: 0,
}
}
}