Add: maestro accountType 4(500 players), 5(1,000 players)
This commit is contained in:
@@ -42,6 +42,15 @@ class MaestroInfo {
|
||||
|
||||
case 3:
|
||||
return 100;
|
||||
|
||||
case 4:
|
||||
return 500;
|
||||
|
||||
case 5:
|
||||
return 1000;
|
||||
|
||||
default:
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -97,6 +97,21 @@ function updateCards(accountType) {
|
||||
$("#account_type_3_footer").text("현재 적용된 요금제입니다.");
|
||||
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);
|
||||
if($result === null) {
|
||||
if($playerCount === null || $playerCount === 0) {
|
||||
set_error_message("등록된 학생이 없습니다.");
|
||||
send_result_fail();
|
||||
exit;
|
||||
|
||||
Reference in New Issue
Block a user