创建游戏房间时, 增加最大存活时间的参数

This commit is contained in:
zhl 2021-04-30 16:37:05 +08:00
parent b3afa40391
commit 639df901da

View File

@ -139,7 +139,7 @@ class PuzzleController extends BaseController {
@router('post /api/:accountid/puzzle/match')
async joinMultipleGame(req, res) {
const { shop, accountid, debug_begin_sec } = req.params
let data = { shop }
let data: any = { shop, maxTime: 3600 }
let beginSecond = (debug_begin_sec ? +debug_begin_sec : 20)
beginSecond = (Math.max(2, beginSecond)) * 1000
/**