Fix: remove old codes - best record

This commit is contained in:
2018-10-23 23:41:20 +09:00
parent f0dc660018
commit c7a5926b21
16 changed files with 47 additions and 401 deletions
+2 -17
View File
@@ -54,20 +54,6 @@ var Start = {
screenBottomUI.printCenterText(sessionStorageManager.getPlayingAppKoreanName());
screenBottomUI.printRightText(sessionStorageManager.getPlayerName());
// this.dbConnectManager.requestTodayBestRecord(
// sessionStorageManager.getMaestroID(),
// sessionStorageManager.getPlayerID(),
// sessionStorageManager.getPlayingAppID(),
// (function(replyJSON) {
// sessionStorageManager.setBestRecord(Number(replyJSON["BestRecord"]));
// screenBottomUI.printLeftTextWithBestRecord(sessionStorageManager.getBestRecord());
// }).bind(this),
// (function(replyJSON) { // no data
// sessionStorageManager.setBestRecord(0);
// screenBottomUI.printLeftTextWithBestRecord(sessionStorageManager.getBestRecord());
// }).bind(this)
// );
this.dbConnectManager.requestAppHighestRecord(
sessionStorageManager.getMaestroID(),
sessionStorageManager.getPlayerID(),
@@ -75,15 +61,14 @@ var Start = {
(function(replyJSON) {
var appHighestRecord = replyJSON["AppHighestRecord"];
console.log("appHighestRecord : " + appHighestRecord);
// sessionStorageManager.setBestRecord(Number(appHighestRecord));
sessionStorageManager.setAppHighestRecord(Number(appHighestRecord));
screenBottomUI.printLeftTextWithBestRecord(appHighestRecord);
screenBottomUI.printLeftTextWithAppHighestRecord(appHighestRecord);
}).bind(this),
(function(replyJSON) { // no data
var appHighestRecord = replyJSON["AppHighestRecord"];
console.log("appHighestRecord : " + appHighestRecord);
sessionStorageManager.setAppHighestRecord(0);
screenBottomUI.printLeftTextWithBestRecord(sessionStorageManager.getAppHighestRecord());
screenBottomUI.printLeftTextWithAppHighestRecord(sessionStorageManager.getAppHighestRecord());
}).bind(this)
);
},