Add: free player, maestro test account app menu pages
This commit is contained in:
@@ -46,50 +46,6 @@ function loadMaestroTestAccountInfo() {
|
||||
}
|
||||
|
||||
);
|
||||
|
||||
/*
|
||||
let xhr = new XMLHttpRequest(); //new로 생성.
|
||||
xhr.open('POST', './../server/maestro/maestro_test_player.php', true);
|
||||
xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
|
||||
xhr.send("maestro_id=" + maestroID);
|
||||
xhr.onload = function() {
|
||||
if(xhr.readyState === 4 && xhr.status === 200) {
|
||||
// console.log(xhr.responseText);
|
||||
// console.log(xhr.responseText.length);
|
||||
if(xhr.responseText.length === 0 || xhr.responseText === null) {
|
||||
console.log("no data from server");
|
||||
return;
|
||||
}
|
||||
|
||||
let replyJSON = JSON.parse(xhr.responseText);
|
||||
// console.log(replyJSON);
|
||||
|
||||
if(replyJSON === null) {
|
||||
console.log("no data from server");
|
||||
return;
|
||||
}
|
||||
|
||||
if(replyJSON["ERROR"] !== undefined || replyJSON["RESULT"] === undefined) {
|
||||
console.log(replyJSON["ERROR"]);
|
||||
return;
|
||||
}
|
||||
|
||||
if(replyJSON["RESULT"] === "fail") {
|
||||
console.log(replyJSON["RESULT"]);
|
||||
return;
|
||||
}
|
||||
|
||||
let playerID = replyJSON["PlayerID"];
|
||||
let playerName = replyJSON["PlayerName"];
|
||||
|
||||
console.log("playerID : " + playerID);
|
||||
console.log("playerName : " + playerName);
|
||||
|
||||
sessionStorage.setItem("playerID", playerID);
|
||||
sessionStorage.setItem("playerName", playerName);
|
||||
}
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
function runMaestroAccountApp() {
|
||||
@@ -115,20 +71,6 @@ function deleteMaestroAllRecords() {
|
||||
}
|
||||
|
||||
);
|
||||
|
||||
/* let xhr = new XMLHttpRequest(); //new로 생성.
|
||||
xhr.open('POST', './../server/maestro/delete_test_player_record.php', true);
|
||||
xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
|
||||
xhr.send("maestro_id=" + maestroID);
|
||||
xhr.onload = function() {
|
||||
if(xhr.readyState === 4 && xhr.status === 200) {
|
||||
let replyJSON = JSON.parse(xhr.responseText);
|
||||
// console.log(replyJSON);
|
||||
}
|
||||
}
|
||||
|
||||
alert("마에스트로 전용 계정의 모든 플레이 기록이 지워졌습니다.");
|
||||
*/
|
||||
} else {
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user