From 1fe0b08e9fce864648832fff18de7d0f1180d4dd 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: Thu, 18 Jul 2019 09:49:27 +0900 Subject: [PATCH] Fix: db_connect_manager - requestPlayerHistory parameters --- src/game/lib/db_connect_manager.js | 6 +++--- src/game/result/history_board.js | 2 -- src/game/start/start.js | 1 - 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/game/lib/db_connect_manager.js b/src/game/lib/db_connect_manager.js index a9953a8..8ffdd81 100644 --- a/src/game/lib/db_connect_manager.js +++ b/src/game/lib/db_connect_manager.js @@ -200,7 +200,7 @@ DBConnectManager.prototype.requestTypingTestAppList = function(maestroID, player xhr.send("maestro_id=" + maestroID + "&player_id=" + playerID); } -DBConnectManager.prototype.requestPlayerHistory = function(maestroID, date, listener) { +DBConnectManager.prototype.requestPlayerHistory = function(date, listener) { var historyRecordManager = new HistoryRecordManager(); /* @@ -225,8 +225,8 @@ DBConnectManager.prototype.requestPlayerHistory = function(maestroID, date, list if(replyJSON != null) listener(self.parseJSONtoHistoryRecord(replyJSON)); - else - onFailedListener(replyJSON); + // else + // onFailedListener(replyJSON); } }; var params = "MaestroID=" + sessionStorageManager.getMaestroID() diff --git a/src/game/result/history_board.js b/src/game/result/history_board.js index e63710b..d1baea0 100644 --- a/src/game/result/history_board.js +++ b/src/game/result/history_board.js @@ -54,8 +54,6 @@ function HistoryBoard(dataType) { } HistoryBoard.prototype.parseHistoryRecordManagerData = function(historyRecordManager) { - console.log(historyRecordManager); - if(historyRecordManager.getCount() == 0) { console.log("history board - no data"); return; diff --git a/src/game/start/start.js b/src/game/start/start.js index f4b1a60..e7bc553 100644 --- a/src/game/start/start.js +++ b/src/game/start/start.js @@ -99,7 +99,6 @@ var Start = { var today = new Date(); var date = DateUtil.getYYYYMMDD(today); this.dbConnectManager.requestPlayerHistory( - sessionStorageManager.getMaestroID(), date, (function(historyRecordManager) { if(historyRecordManager.count == 0) {