From 9529c0dc4bd7e651b00642acd055ce3e791b8889 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E1=84=8B=E1=85=A2=E1=84=91=E1=85=B3=E1=86=AF=20=E1=84=82?= =?UTF-8?q?=E1=85=A9=E1=84=90=E1=85=B3=E1=84=87=E1=85=AE=E1=86=A8?= Date: Sun, 12 Aug 2018 18:55:44 +0900 Subject: [PATCH] Fix: experience maestro account type 101, test player account type 100 -> start, result page --- jinaju.pem | 27 ++++++++++++++++++++++++++ src/game/result/result.js | 4 ++-- src/game/start/start.js | 2 +- src/web/main/free_player_app_menu.html | 6 ++++++ 4 files changed, 36 insertions(+), 3 deletions(-) create mode 100644 jinaju.pem diff --git a/jinaju.pem b/jinaju.pem new file mode 100644 index 0000000..2697851 --- /dev/null +++ b/jinaju.pem @@ -0,0 +1,27 @@ +-----BEGIN RSA PRIVATE KEY----- +MIIEpQIBAAKCAQEAto8EAdSfG6gOtOgQ6quT9AujI3D7A+LDlSvRSItpDLMk+aif +trypybL5s41E0iLM+Kxn673RwFR0NF5XSRswEKQKku+0BxBJukTTkudTBk+zlZAt +dvlzzqna6uTdDsUqO4caZxXJ/T2nvLeakoDQ0r01KF/zuYKEKg/fXG86IAGiYYw3 +USP5pkZ5r5laLA4gF7RI6lG/0j0Gs+cwL0y7rYr63LpwBifFYCpWrEKqHM6bdDyx +S8MHmtRbLmZcuj7jyz10hTw6uIhfRM6pMRud8Qk57slsDvgPFC6QMQT1tofwP0OM +lqc7udOrAZqtByIdctTxrEU908hfMtQKDfJpswIDAQABAoIBAEY3Vcw6coQZrKZq +R+9q1Ppd6357OyDwfFeIxfNII7yNvuADuoJ3qDp7C03DPUAxwHK5JTNoDCAUm6l0 +y8/DlEYiQirn5W9+FU1+oX30WVupFiKllMcZBTDs5dXI9zlyHl9NBJu3prwvla+h +UuOchjU4LxT7auvkRl9DQZ707P9X2XSOqKqzSM1gaJZ4nLjY5QoY6i6RYCTc+VgN +tyWPh5MEROtjN+mZW4ztutrT1PC0vNx9ZwdtPe16/ydPbaYZJux010Bb1g0PAPQK +m1TfceeVahqubFhMEep2ykI0RkpxtFD4M+6KqEkiiDAEKCDssSOjiPfJ4G8rwzKA +DEp/ugECgYEA+qWIf/+5zYH42XkywpEO0oI6Me2znfF3Ms65X+PvqI/Fc3n9i0f4 +WmLCQsY/osS5zQ8FAOgq7h1W2+9Oqb76p88UCOYJaWErQtlGKJ2O1ViMjiku9VHk +72vUjX2gRVjO6ga9eapHS1B1JoHh0s2AyA8LVhB+XATfFD1UGAqHELMCgYEAunUy +OlX0ddjAU7grwc8KQJWcAfgkuKun+jaT9bIf1Uquv/KLTJbEdFH7a/7OOwBwZYiG +5lv5de6eHx4e3qBSiJrr3k9+eaAw8V5iwlS854+L6w1pE0t00kOg1zaU+aoGLmFt +LDGfNlEbzNV5nsq6wM40Vx0fxkPS+f5QCCsBwwECgYEAj496ZF3zbRrxjpZVlY2C +IN6IOIq+Y0uni0lOcfbbEP/wBxkrOLhrLlH8lER6tF7bUPE2W3OfCy1wz538v0rs +xGrePc6MO3h1T9+kyKSd5+LE9rPt+oMCjoODhdsbjjy0nuRnaCU4mpGl1/1ye8xK +48uCIbRmu4vqvev2m6KEA/MCgYEArbwPrg1zN+9b3WYo13Bb5CvC7o7RYIUJgnoi +SXfMc4gf5dhQdW+x45SUCV+lt5JEKEcbMz+V5I4PJX2CU/vci06W4lD9zsQ1dmF0 +8g/U6Ip3W+/l7UWMt3KuRnmkPDFxivvapqgh6pGOrsBmj0/kzUwVtun7NljyF2Ag +IEw6WwECgYEAjwxB3UcKP/z33uB7UUJvvuOTbNK2ToG8pQR83czFq9diLhcqKNNG +RVrvcJkIrs2PVZc4vEk3wdXw7oOSMZvD/fuVQzjTQo+SgEVIQiy8xGFpLguKXVei +Jagn4NQIastL1x8dTYhFjOeAj2g9Cbb1mmqgLfoJcRowOSxJbj0Wkgw= +-----END RSA PRIVATE KEY----- diff --git a/src/game/result/result.js b/src/game/result/result.js index a50a290..dadb284 100644 --- a/src/game/result/result.js +++ b/src/game/result/result.js @@ -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; } diff --git a/src/game/start/start.js b/src/game/start/start.js index b912a9e..2231f50 100644 --- a/src/game/start/start.js +++ b/src/game/start/start.js @@ -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("체험 계정에서는 기록이 저장되지 않습니다."); diff --git a/src/web/main/free_player_app_menu.html b/src/web/main/free_player_app_menu.html index 7f87aea..9f03b15 100644 --- a/src/web/main/free_player_app_menu.html +++ b/src/web/main/free_player_app_menu.html @@ -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";