Fix: experience maestro account type 101, test player account type 100 -> start, result page
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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("체험 계정에서는 기록이 저장되지 않습니다.");
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user