增加活动记录过期的判断
This commit is contained in:
parent
ae8a448159
commit
b9fdbc8d61
@ -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)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user