修改娱乐模式保存结果的返回

This commit is contained in:
zhl 2021-02-09 20:12:06 +08:00
parent aa8da0cb27
commit 250016dbe4

View File

@ -30,7 +30,7 @@ export default class RecordController extends BaseController {
let record = new GameRecord(req.params) let record = new GameRecord(req.params)
await record.save() await record.save()
if (!record.matchid) { if (!record.matchid) {
return return {}
} }
let cfg: MatchCfg = global.$cfg.get(BaseConst.MATCH).get(parseInt(record.matchid)) let cfg: MatchCfg = global.$cfg.get(BaseConst.MATCH).get(parseInt(record.matchid))
if (!cfg) { if (!cfg) {