From 250016dbe47bdf70608e65d86639fd573b828b8f Mon Sep 17 00:00:00 2001 From: zhl Date: Tue, 9 Feb 2021 20:12:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=A8=B1=E4=B9=90=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F=E4=BF=9D=E5=AD=98=E7=BB=93=E6=9E=9C=E7=9A=84=E8=BF=94?= =?UTF-8?q?=E5=9B=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controllers/RecordController.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/RecordController.ts b/src/controllers/RecordController.ts index 64c60a2..2a7c88c 100644 --- a/src/controllers/RecordController.ts +++ b/src/controllers/RecordController.ts @@ -30,7 +30,7 @@ export default class RecordController extends BaseController { let record = new GameRecord(req.params) await record.save() if (!record.matchid) { - return + return {} } let cfg: MatchCfg = global.$cfg.get(BaseConst.MATCH).get(parseInt(record.matchid)) if (!cfg) {