Fix: experience maestro account type 101, test player account type 100 -> start, result page

This commit is contained in:
2018-08-12 18:55:44 +09:00
parent 823cbef243
commit 9529c0dc4b
4 changed files with 36 additions and 3 deletions
+2 -2
View File
@@ -35,7 +35,7 @@ class Result {
this.makeRestartButton();
if(sessionStorageManager.maestroAccountType == 0) { // experience account
if(sessionStorageManager.maestroAccountType >= 100) { // experience account
let recordBoard = new RecordBoard(RecordBoard.TYPE_SAMPLE);
this.announceBox = new AnnounceBox(50, 648);
this.announceBox.drawBox("체험 계정에서는 기록이 저장되지 않습니다.");
@@ -89,7 +89,7 @@ class Result {
}
uploadRecord() {
if(sessionStorageManager.maestroAccountType == 0) { // experience account
if(sessionStorageManager.maestroAccountType >= 100) { // experience account
return;
}
+1 -1
View File
@@ -33,7 +33,7 @@ class Start {
// contents
this.loadHowToPlay(sessionStorageManager.playingAppID);
this.makeStartButton();
if(sessionStorageManager.maestroAccountType == 0) { // experience account
if(sessionStorageManager.maestroAccountType >= 100) { // experience account
this.printSampleChart();
this.announceBox = new AnnounceBox(50, 648);
this.announceBox.drawBox("체험 계정에서는 기록이 저장되지 않습니다.");
+6
View File
@@ -24,15 +24,21 @@
(jsonData) => {
let maestroID = jsonData["maestroID"];
let maestroAccountType = jsonData["maestroAccountType"];
let playerID = jsonData["playerID"];
let playerAccountType = jsonData["playerAccountType"];
let playerName = jsonData["playerName"];
console.log("maestroID : " + maestroID);
console.log("maestroAccountType : " + maestroAccountType);
console.log("playerID : " + playerID);
console.log("playerAccountType : " + playerAccountType);
console.log("playerName : " + playerName);
sessionStorage.setItem("maestroID", maestroID);
sessionStorage.setItem("maestroAccountType", maestroAccountType);
sessionStorage.setItem("playerID", playerID);
sessionStorage.setItem("playerAccountType", playerAccountType);
sessionStorage.setItem("playerName", playerName);
location.href = "./../client/menu_app.html";