增加活动记录过期的判断

This commit is contained in:
zhl 2021-05-21 18:24:12 +08:00
parent ae8a448159
commit b9fdbc8d61

View File

@ -244,8 +244,8 @@ class PuzzleController extends BaseController {
} }
new RoomState().lock(shop) new RoomState().lock(shop)
let history = await PuzzleSession.findOne({ shop, status: {$in: [0, 1]}, type: 1, activityId: aid }) let history = await PuzzleSession.findOne({ shop, status: {$in: [0, 1]}, type: 1, activityId: aid })
if (history) { // if (history) {
// if (history && !history.hasExpired()) { if (history && !history.hasExpired()) {
beginTime = history.begin beginTime = history.begin
sessionMatch = history.id sessionMatch = history.id
if (!history.members.has(accountid)) { if (!history.members.has(accountid)) {