Fix: db_connect_manager - requestPlayerHistory parameters

This commit is contained in:
2019-07-18 09:49:27 +09:00
parent e324e9c41a
commit 1fe0b08e9f
3 changed files with 3 additions and 6 deletions
+3 -3
View File
@@ -200,7 +200,7 @@ DBConnectManager.prototype.requestTypingTestAppList = function(maestroID, player
xhr.send("maestro_id=" + maestroID + "&player_id=" + playerID); 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(); var historyRecordManager = new HistoryRecordManager();
/* /*
@@ -225,8 +225,8 @@ DBConnectManager.prototype.requestPlayerHistory = function(maestroID, date, list
if(replyJSON != null) if(replyJSON != null)
listener(self.parseJSONtoHistoryRecord(replyJSON)); listener(self.parseJSONtoHistoryRecord(replyJSON));
else // else
onFailedListener(replyJSON); // onFailedListener(replyJSON);
} }
}; };
var params = "MaestroID=" + sessionStorageManager.getMaestroID() var params = "MaestroID=" + sessionStorageManager.getMaestroID()
-2
View File
@@ -54,8 +54,6 @@ function HistoryBoard(dataType) {
} }
HistoryBoard.prototype.parseHistoryRecordManagerData = function(historyRecordManager) { HistoryBoard.prototype.parseHistoryRecordManagerData = function(historyRecordManager) {
console.log(historyRecordManager);
if(historyRecordManager.getCount() == 0) { if(historyRecordManager.getCount() == 0) {
console.log("history board - no data"); console.log("history board - no data");
return; return;
-1
View File
@@ -99,7 +99,6 @@ var Start = {
var today = new Date(); var today = new Date();
var date = DateUtil.getYYYYMMDD(today); var date = DateUtil.getYYYYMMDD(today);
this.dbConnectManager.requestPlayerHistory( this.dbConnectManager.requestPlayerHistory(
sessionStorageManager.getMaestroID(),
date, date,
(function(historyRecordManager) { (function(historyRecordManager) {
if(historyRecordManager.count == 0) { if(historyRecordManager.count == 0) {