From 4c5f3af7cfd77a8827e61f49ee96c49619919f3c Mon Sep 17 00:00:00 2001 From: zjz1993 <1429595365@qq.com> Date: Tue, 27 Aug 2019 09:56:39 +0800 Subject: [PATCH] =?UTF-8?q?bugfix:=20=E4=BF=AE=E5=A4=8D=E6=AF=94=E8=B5=9B?= =?UTF-8?q?=E6=97=B6=E5=90=8E=E9=9D=A2=E8=AE=B0=E5=BD=95=E4=BC=9A=E5=88=B7?= =?UTF-8?q?=E6=96=B0=E5=89=8D=E9=9D=A2=E8=AE=B0=E5=BD=95=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98=EF=BC=8C=E7=8E=B0=E5=9C=A8=E5=8F=AA=E5=9C=A8=E5=90=8E?= =?UTF-8?q?=E9=9D=A2=E8=AE=B0=E5=BD=95=E5=BE=97=E5=88=86=E9=AB=98=E4=BA=8E?= =?UTF-8?q?=E5=89=8D=E9=9D=A2=E8=AE=B0=E5=BD=95=E6=97=B6=E5=88=B7=E6=96=B0?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- models-built/contest_player.js | 2 +- models-built/contest_player.js.map | 2 +- models/contest_player.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/models-built/contest_player.js b/models-built/contest_player.js index 1482cb0..bf6d252 100644 --- a/models-built/contest_player.js +++ b/models-built/contest_player.js @@ -138,7 +138,7 @@ var ContestPlayer = /** @class */ (function (_super) { if (this.score_details[judge_state.problem_id] && this.score_details[judge_state.problem_id].judge_id > judge_state.id) return [2 /*return*/]; this.score_details[judge_state.problem_id] = { - score: judge_state.score, + score: Math.max(judge_state.score, this.score_details[judge_state.problem_id].score), judge_id: judge_state.id }; this.score = 0; diff --git a/models-built/contest_player.js.map b/models-built/contest_player.js.map index bcace30..a8b7a94 100644 --- a/models-built/contest_player.js.map +++ b/models-built/contest_player.js.map @@ -1 +1 @@ -{"version":3,"file":"contest_player.js","sourceRoot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AAC,CAAC,QAAQ,GAAG,GAAG,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,QAAQ,CAAC;iCACpF;gCAED,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC;gCACf,KAAS,CAAC,IAAI,IAAI,CAAC,aAAa,EAAE;oCAChC,IAAI,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,QAAQ;wCAAE,IAAI,CAAC,KAAK,EAAE,CAAC;iCAClD;6BACF;yBACF;;;;;KACF;;IAnIM,mBAAK,GAAG,IAAI,CAAC;IAGpB;QADC,OAAO,CAAC,sBAAsB,EAAE;;qCACtB;IAIX;QAFC,OAAO,CAAC,KAAK,EAAE;QACf,OAAO,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;6CACjC;IAInB;QAFC,OAAO,CAAC,KAAK,EAAE;QACf,OAAO,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;0CACpC;IAGhB;QADC,OAAO,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;wCACtC;IAGd;QADC,OAAO,CAAC,MAAM,CAAC,EAAE,SAAO,EAAE,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;gDACxC;IAGtB;QADC,OAAO,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;6CACjC;IArBA,aAAa;QADjC,OAAO,CAAC,MAAM,EAAE;OACI,aAAa,CAqIjC;IAAD,oBAAC;CAAA,AArID,CAA2C,mBAAK,GAqI/C;qBArIoB,aAAa"} \ No newline at end of file +{"version":3,"file":"contest_player.js","sourceRoot":"","sources":["../models/contest_player.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;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2008ea9 100644 --- a/models/contest_player.ts +++ b/models/contest_player.ts @@ -82,7 +82,7 @@ export default class ContestPlayer extends Model { if (this.score_details[judge_state.problem_id] && this.score_details[judge_state.problem_id].judge_id > judge_state.id) return; this.score_details[judge_state.problem_id] = { - score: judge_state.score, + score: Math.max(judge_state.score ,this.score_details[judge_state.problem_id].score), judge_id: judge_state.id };