From 944c9340d7de228705bc71b545f8af7bdf251538 Mon Sep 17 00:00:00 2001 From: zhl Date: Mon, 18 Jan 2021 20:33:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=A9=E6=A2=AF=E5=88=86=E8=AF=BB=E5=8F=96?= =?UTF-8?q?=E6=9C=80=E5=B0=8F=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controllers/RecordController.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/controllers/RecordController.ts b/src/controllers/RecordController.ts index f9d266f..ae377ae 100644 --- a/src/controllers/RecordController.ts +++ b/src/controllers/RecordController.ts @@ -46,7 +46,8 @@ export default class RecordController extends BaseController { error(`save game record, account not found: ${player.accountid}`); continue; } - user.season_score += player.scoreChange; + + user.season_score = Math.max(user.season_score + player.scoreChange, fc.get(70002).number); if (!user.season_data) { user.season_data = new Map(); }