From 200b4a7fe7441e3718db2ce734a8e95018e1615c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E1=84=8B=E1=85=A2=E1=84=91=E1=85=B3=E1=86=AF=20=E1=84=82?= =?UTF-8?q?=E1=85=A9=E1=84=90=E1=85=B3=E1=84=87=E1=85=AE=E1=86=A8?= Date: Wed, 17 Jul 2019 09:34:50 +0900 Subject: [PATCH] Fix: addRecord, addHighestRecord method name --- src/game/typing/examination/game.js | 12 +++--------- src/web/php/writing/update_result_record.php | 4 ++-- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/src/game/typing/examination/game.js b/src/game/typing/examination/game.js index c50baf9..6bd6708 100644 --- a/src/game/typing/examination/game.js +++ b/src/game/typing/examination/game.js @@ -14,11 +14,10 @@ var TypingExamination = { // sessionStorageManager.setPlayingAppKoreanName("타자 검정"); // sessionStorageManager.setRecord(0); // sessionStorageManager.setAppHighestRecord(100.123); - sessionStorageManager.setPlayingAppName("typing_examination_korean"); + sessionStorageManager.setPlayingAppName("typing_examination"); sessionStorageManager.setPlayingAppKoreanName("타자 검정"); - // this.dbConnectManager = new DBConnectManager(); this.dbService = new DBService(); this.dbService.setMaestroID(sessionStorageManager.getMaestroID()); this.dbService.setPlayerID(sessionStorageManager.getPlayerID()); @@ -37,16 +36,14 @@ var TypingExamination = { game.stage.backgroundColor = TypingExamination.STAGE_BACKGROUND_COLOR; - /* // keyboard shortcut - useless. this.keyboard is chargning for ESC event this.keyboardShortcut = new KeyboardShortcut(); this.keyboardShortcut.addCallback( Phaser.KeyCode.ESC, // keyCode null, // keyDownHandler (function() { this.back(); }).bind(this), // keyUpHandler - "keyboard_test" // callerClassName + "typing_examination" // callerClassName ); - */ // top ui var screenTopUI = new ScreenTopUI(); @@ -55,7 +52,6 @@ var TypingExamination = { this.averageTypingSpeedText = new AverageTypingSpeed(); - // this.contentProgressText = new ContentProgress(); @@ -304,7 +300,7 @@ var TypingExamination = { if(!isExperienceMaestroAccount()) this.updateResultRecord(); - // game.time.events.add(Phaser.Timer.SECOND * 2, this.goResult, this); + game.time.events.add(Phaser.Timer.SECOND * 2, this.goResult, this); }, updateResultRecord: function() { @@ -589,8 +585,6 @@ var TypingExamination = { }, showPlayingWordNumber: function() { - // this.contentProgressText.print(this.typingIndex + 1, this.typingContentLength); - var currentLine = this.typingIndex + 1; this.textTypingLine.text = currentLine + " / " + this.typingContentLength; }, diff --git a/src/web/php/writing/update_result_record.php b/src/web/php/writing/update_result_record.php index a46ea60..f90b46d 100644 --- a/src/web/php/writing/update_result_record.php +++ b/src/web/php/writing/update_result_record.php @@ -57,11 +57,11 @@ function updateRecord($maestroID, $playerID, $writingID, $record) // $jsonBuilder->setData("thisHourRecordData", $thisHourRecordData); if ($thisHourRecordData["record"] === null) { $typingExam->addRecord($maestroID, $playerID, $writingID, $record); - $jsonBuilder->setData("record", "added : ".$record); + // $jsonBuilder->setData("record", "added : ".$record); } else { if ($record > $thisHourRecordData["record"]) { $typingExam->updateRecord($thisHourRecordData["typingExamRecordID"], $record); - $jsonBuilder->setData("record", "updated : ".$record); + // $jsonBuilder->setData("record", "updated : ".$record); } } }