Add: maestro accountType 4(500 players), 5(1,000 players)

This commit is contained in:
2018-09-04 18:14:15 +09:00
parent f81868e3a5
commit 3a1be0744c
3 changed files with 25 additions and 1 deletions
+9
View File
@@ -42,6 +42,15 @@ class MaestroInfo {
case 3: case 3:
return 100; return 100;
case 4:
return 500;
case 5:
return 1000;
default:
return 0;
} }
} }
+15
View File
@@ -97,6 +97,21 @@ function updateCards(accountType) {
$("#account_type_3_footer").text("현재 적용된 요금제입니다."); $("#account_type_3_footer").text("현재 적용된 요금제입니다.");
break; break;
case 4:
case 5:
default:
$("#account_type_1_btn").addClass("btn-secondary disabled");
$("#account_type_1_footer").addClass("text-muted");
$("#account_type_1_footer").text("낮은 요금제로 내릴 수는 없습니다.");
$("#account_type_2_btn").addClass("btn-secondary disabled");
$("#account_type_2_footer").addClass("text-muted");
$("#account_type_2_footer").text("낮은 요금제로 내릴 수는 없습니다.");
$("#account_type_3_btn").addClass("btn-secondary disabled");
$("#account_type_3_footer").addClass("text-muted");
$("#account_type_3_footer").text("낮은 요금제로 내릴 수는 없습니다.");
break;
} }
} }
@@ -8,7 +8,7 @@ $maestroID = $_POST["maestro_id"];
$playerCount = getPlayerCount($maestroID); $playerCount = getPlayerCount($maestroID);
if($result === null) { if($playerCount === null || $playerCount === 0) {
set_error_message("등록된 학생이 없습니다."); set_error_message("등록된 학생이 없습니다.");
send_result_fail(); send_result_fail();
exit; exit;