Fix: addRecord, addHighestRecord method name
This commit is contained in:
@@ -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;
|
||||
},
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user