Fix: notice for reopen, start paid service

This commit is contained in:
2022-06-29 20:45:42 +09:00
parent 7bcbf7495c
commit 9eec33cc49
9 changed files with 256 additions and 77 deletions
+62
View File
@@ -0,0 +1,62 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<meta charset="UTF-8">
<title>베타 서비스 알림 | 초코마에</title>
<meta name="description" CONTENT="베타 서비스 알림 | 초코마에 ‧ 서비스 | ChocoMae">
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-CMCJ6N2208"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-CMCJ6N2208');
</script>
<link rel="icon" href="/mouse_typing/resources/image/icon/favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="/mouse_typing/resources/image/icon/favicon.ico" type="image/x-icon" />
<link href="../../../resources/font/open-iconic-master/font/css/open-iconic-bootstrap.css" rel="stylesheet">
<link href="../../../resources/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<script type="text/javascript" src="./../../../resources/jquery/jquery-3.3.1.min.js"></script>
<script type="text/javascript" src="./../js/main.js"></script>
<script type="text/javascript">
$(document).ready(function() {
if(maestroID === -1)
$("#header").load("./../module/header.html");
else
$("#header").load("./../module/maestro_header.html");
$("#section").load("./../module/home_section_reopen_service.html");
$("#footer").load("./../module/footer.html");
});
</script>
</head>
<body style="background-color: white">
<div id="wrapper">
<header id="header">
</header>
<section id="section">
</section>
<footer id="footer">
</footer>
</div>
</body>
</html>
+10 -13
View File
@@ -3,13 +3,13 @@
$(document).ready(function() {
// showServiceCloseMessage();
showErrorMessage(
'(0430일) 알림<br/>\
* 초코마에 베타 서비스 시작<br/>\
* 2022년 07월까지 무료, 08월 이후 유료화 예정<br/>\
'(07월 02일) 알림<br/>\
* 초코마에 유료 정식 서비스 시작<br/>\
* 계정 유효기간 연장 or 업그레이드 메뉴가 활성화되었습니다.<br/>\
<br/>\
<a class="btn btn-outline-success" roll="button" href="../main/beta_service.html">\
<a class="btn btn-outline-success" roll="button" href="../main/reopen_service.html">\
<span class="oi oi-bullhorn" title="icon bullhorn" aria-hidden="true"></span>\
&nbsp;베타 서비스 + 8월 유료화 안내</a>'
정식 유료 서비스 - 자세한 내용 보기</a>'
, 'info'
);
});
@@ -161,16 +161,13 @@ function experienceMaestro() {
</div>
<div class="col-4">
<ul>
<li class="text-secondary"><del>3만원 : 학생 100명</del></li>
<li class="text-secondary"><del>4만원 : 학생 500명</del></li>
<li class="text-secondary"><del>5만원 : 학생 1,000명</del></li>
<li>3만원 : 학생 100명</li>
<li>4만원 : 학생 500명</li>
</ul>
</div>
<div class="col-4">
<ul class="list-unstyled">
<li class="text-info">(베타 기간 이후)</li>
<li class="text-info">학생 100명 이상 계정</li>
<li class="text-info">등록 가능</li>
<ul>
<li>5만원 : 학생 1,000명</li>
</ul>
</div>
</div>
@@ -186,7 +183,7 @@ function experienceMaestro() {
</a>
</div>
<div class="col-8">
<a class="btn btn-primary btn-block btn-lg" role="button" href="./../main/register.html">마에스트로 가입 <span class="font-weight-light">(베타 기간동안 무료)</span></a>
<a class="btn btn-primary btn-block btn-lg" role="button" href="./../main/register.html">마에스트로 가입</a>
</div>
</div>
@@ -0,0 +1,99 @@
<div class="container my-3">
<div class="px-5 py-4 mb-3" style="background-color: #ffce54">
<h1 class="display-3 font-weight-bold" style="color: #630;">초코마에<span class="display-4">, 8월 정식 유료 서비스 안내</span></h1>
</div> <!-- jumbotron -->
<div class="card border-danger">
<h5 class="card-header text-primary font-weight-bold">8월 1일, 정식 유료 서비스 시작</h5>
<div class="card-body">
<h5 class="card-title text-primary">2022년 7월 31일까지 무료, <span class="text-danger">8월 1일부터 유료</span></h5>
<p class="card-text">
<ul>
<li>5월부터 6월까지 약 2개월간 개인 서버에서 시험적으로 운영해 보았습니다.</li>
<li>큰 문제 없이 서비스가 진행되어서 8월 1일부터 유료 서비스로 전환합니다.</li>
</ul>
<div class="alert alert-warning" role="alert">
<ul>
<li>현재 사용중인 계정은 7월 31일까지 무료로 사용하실 수 있습니다.</li>
<li>8월 1일에 유료 결제가 되지 않은 계정은 학생 로그인이 막힙니다.</li>
</ul>
</div>
</p>
</div>
</div>
<br/>
<div class="card">
<h5 class="card-header text-primary font-weight-bold">유료 결제 방법</h5>
<div class="card-body">
<h5 class="card-title text-primary">(방법 1) 계정 유효기간 연장</h5>
<p class="card-text">
<ul>
<li>현재 사용중이신 베타 계정의 만료일은 7월 31일로 설정되어 있습니다.</li>
<li>
만료일 30일 전(7월 2일)부터 마에스트로 관리 화면 홈에 [유효기간 연장] 버튼이 보여집니다.
<br>
<img src="유효기간 연장 버튼 스샷.png">
</li>
<li>[유효기간 연장] 버튼을 눌러서 계정 유효기간을 신청합니다.</li>
<li>
연장 신청 화면에서 보여드릴 초코마에 카카오뱅크 계좌로 송금해주세요. (보내는 사람 이름은 반드시 마에스트로 이름으로 기입 부탁드립니다)
<br>
<img src="송금자명 스샷.png">
</li>
</ul>
</p>
<h5 class="card-title text-primary">(방법 2) 계정 업그레이드</h5>
<p class="card-text">
<ul>
<li>
마에스트로 로그인을 하면 관리 화면 홈 상단 우측에 [업그레이드] 버튼이 있습니다.
<br>
<img src="업그레이드 스샷.png">
</li>
<li>
[업그레이드] 버튼을 눌러서 상위 요금제로 업그레이드를 신청합니다.
<br>
<div class="alert alert-warning" role="alert">
<ul>
<li>베타 기간동안 막아두었던 100명(3만원), 500명(4만원), 1,000명(5만원) 요금제도 활성화되었습니다.</li>
</ul>
</div>
</li>
<li>
업그레이드 신청 화면에서 보여드릴 초코마에 카카오뱅크 계좌로 송금해주세요. (송금자명은 반드시 마에스트로 이름으로 기입 부탁드립니다)
<br>
<img src="송금자명 스샷.png">
</li>
</ul>
</p>
<div class="alert alert-warning" role="alert">
<ul>
<li>입금을 수작업으로 확인하고 있습니다.</li>
<li>이로 인해 입금과 승인이 늦어질 수 있습니다. 양해 부탁드립니다.</li>
<li class="list-unstyled"><span class="text-danger">(송금자명이 마에스트로 이름과 다를 경우에는 확인이 좀 더 늦어집니다)</span></li>
</ul>
</div>
</div>
</div>
<br/>
<div class="card">
<h5 class="card-header text-primary font-weight-bold">유료 서비스로 전환하며</h5>
<div class="card-body">
<h5 class="card-title text-primary">방과후/초등학교 선생님께</h5>
<p class="card-text">
<ul>
<li>초코마에 서비스를 다시 찾아주셔서 감사합니다.</li>
<br/>
<li>현재 회사를 다니고 있기 때문에 추가적인 개발은 못하는 상황입니다.</li>
<li>웹 개발 일을 열심히 배워서 내년이나 이후에는 개선된 서비스를 제공할 수 있도록 노력하겠습니다.</li>
</ul>
</p>
</div>
</div>
<br/>
</div>
+1 -1
View File
@@ -140,7 +140,7 @@ function extendMaestroAccount() {
<div class="card-body px-5">
<div class="row">
<label class="col-sm-3 col-form-label">* 카카오뱅크</label>
<label class="col-sm-9 col-form-label">{{bank_account_no}} (예금주 : 박지상)</label>
<label class="col-sm-9 col-form-label">3333-07-4977969 (예금주 : 박지상)</label>
</div>
<div class="row">
+6 -7
View File
@@ -23,13 +23,13 @@ $(document).ready(function() {
// showServiceCloseMessage();
showErrorMessage(
'(0430일) 알림<br/>\
* 초코마에 베타 서비스 시작<br/>\
* 2022년 07월까지 무료, 08월 이후 유료화 예정<br/>\
'(07월 02일) 알림<br/>\
* 초코마에 유료 정식 서비스 시작<br/>\
* 계정 유효기간 연장 or 업그레이드 메뉴가 활성화되었습니다.<br/>\
<br/>\
<a class="btn btn-outline-success" roll="button" href="../main/beta_service.html">\
<a class="btn btn-outline-success" roll="button" href="../main/reopen_service.html">\
<span class="oi oi-bullhorn" title="icon bullhorn" aria-hidden="true"></span>\
&nbsp;베타 서비스 + 8월 유료화 안내</a>'
정식 유료 서비스 - 자세한 내용 보기</a>'
, 'info'
);
});
@@ -214,8 +214,7 @@ function showModal(popupModalID, popupContentID, contentFileName) {
<div class="input-group my-auto">
<input type="text" id="maestro_info_player_count" class="form-control px-2 mx-0" value="학생수 :">
<div class="input-group-append">
<!-- <a class="btn btn-primary px-2 mr-2" role="button" href="./../maestro/upgrade.html">업그레이드</a> -->
<a class="btn btn-primary px-2 mr-2 disabled" role="button" href="./../maestro/upgrade.html">업그레이드</a>
<a class="btn btn-primary px-2 mr-2" role="button" href="./../maestro/upgrade.html">업그레이드</a>
</div>
</div>
+13 -25
View File
@@ -530,38 +530,38 @@ $('#myTab a').on('click', function (e) {
</div>
<div class="form-group row">
<label for="account_type" class="col-sm-2 col-form-label">* 학생 수</label>
<label class="col-sm-2 col-form-label">* 학생 수</label>
<div class="col-sm-6">
<div class="form-check">
<input class="form-check-input" type="radio" name="account_type_radio" id="account_type1" value="1">
<label class="form-check-label" for="account_type1">
20명 (<span class="text-dark bg-warning">7월 말까지 무료</span> <span class="text-secondary"><del>1만원</del></span>)
20명 (1만원)
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="account_type_radio" id="account_type2" value="2">
<label class="form-check-label" for="account_type2">
50명 (<span class="text-dark bg-warning">7월 말까지 무료</span> <span class="text-secondary"><del>2만원</del></span>)
50명 (2만원)
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="account_type_radio" id="account_type3" value="3" disabled>
<input class="form-check-input" type="radio" name="account_type_radio" id="account_type3" value="3">
<label class="form-check-label" for="account_type3">
<del>100명 (3만원)</del> <span class="text-secondary">(추후 정식 서비스때 활성화 예정)</span>
100명 (3만원)
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="account_type_radio" id="account_type4" value="4" disabled>
<input class="form-check-input" type="radio" name="account_type_radio" id="account_type4" value="4">
<label class="form-check-label" for="account_type4">
<del>500명 (4만원)</del> <span class="text-secondary">(추후 정식 서비스때 활성화 예정)</span>
500명 (4만원)
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="account_type_radio" id="account_type5" value="5" disabled>
<input class="form-check-input" type="radio" name="account_type_radio" id="account_type5" value="5">
<label class="form-check-label" for="account_type5">
<del>1,000명 (5만원)</del> <span class="text-secondary">(추후 정식 서비스때 활성화 예정)</span>
1,000명 (5만원)
</label>
</div>
<small class="form-text text-muted">계정 활성화 날짜로부터 1년동안 유효합니다.</small>
@@ -665,23 +665,13 @@ $('#myTab a').on('click', function (e) {
</ul>
</div>
<div class="px-5 py-4 my-3" style="background-color: #ffce54">
<h4 class="mb-4">베타 기간동안 무료</h4>
<ul>
<li>7월 말까지 무료로 사용하세요.</li>
<li>정식 서비스로 전환되면, 요금제 금액만큼 결제하시거나 업그레이드해서 1년동안 사용하실 수 있습니다.</li>
</ul>
</div>
<!--
<div class="px-5 py-4 my-3" style="background-color: #ffce54">
<h4 class="mb-4">입금 계좌</h4>
<form class="mx-4">
<div class="row">
<label class="col-sm-3 col-form-label">* 카카오뱅크</label>
<label class="col-sm-9 col-form-label">{{bank_account_no}} (예금주 : 박지상)</label>
<label class="col-sm-9 col-form-label">3333-07-4977969 (예금주 : 박지상)</label>
</div>
<div class="row">
@@ -699,16 +689,14 @@ $('#myTab a').on('click', function (e) {
</form>
</div>
-->
<div class="px-5 py-4 mt-3" style="background-color: #ddffff">
<h4>계정 활성화 안내</h4>
<ul>
<li>계정 생성 신청이 확인되는대로 마에스트로 아이디를 활성화 해드리겠습니다.</li>
<!-- <li>입금 내역이 확인되는대로 마에스트로 아이디를 활성화 해드리겠습니다.</li> -->
<li>수작업으로 확인하고 계정 활성화하고 있어서 시간이 조금 걸립니다. 양해 부탁드립니다.</li>
<!-- <li>마에스트로 계정이 활성화되는대로 즉시 알림 메일을 드리겠습니다.</li> -->
<li>입금 내역이 확인되는대로 마에스트로 아이디를 활성화 해드리겠습니다.</li>
<li class="list-unstyled">(수작업으로 확인하고 계정을 활성화하고 있어서 시간이 조금 걸립니다. 양해 부탁드립니다)</li>
<li>마에스트로 계정 활성화되는대로 즉시 알림 메일을 드리겠습니다.</li>
</ul>
</div>
+2 -3
View File
@@ -202,7 +202,6 @@ function upgradeMaestroInfo(accountType) {
<li>모든 요금제의 기능은 동일합니다.</li>
<li>1년동안 유효합니다.</li>
<li>높은 요금제로 올릴 수는 있지만, 낮은 요금제로 내릴 수는 없습니다.</li>
<li><span class="text-danger">서비스 종료일(2021년 2월 28일)까지 무료로 업그레이드 해 드립니다.</span></li>
</ul>
<!-- <div class="card-group"> -->
@@ -274,9 +273,9 @@ function upgradeMaestroInfo(accountType) {
<ol>
<li>위에서 업그레이드 하실 상품을 선택하세요.</li>
<li>업그레이드를 신청<s><span class="text-muted">하신 후, 추가 금액을 계좌이체해 주세요.</span></s>하시면, <span class="text-danger">서비스 종료일(2021년 2월 28일)까지 무료로 업그레이드</span> 해 드립니다.</li>
<li>업그레이드를 신청하신 후, 추가 금액을 계좌이체해 주세요.</li>
<li>신청 내역이 확인되는대로 마에스트로 계정의 요금제를 변경해 드리겠습니다.</li>
<li><s><span class="text-muted">기존 요금제 기간이 얼마나 남았던가에 상관없이, 유효 기간은 업그레이드가 적용된 날짜로부터 1년으로 다시 채워집니다.</span></s><br/>
<li>기존 요금제 기간이 얼마나 남았던가에 상관없이, 유효 기간은 업그레이드가 적용된 날짜로부터 1년으로 다시 채워집니다.<br/>
</ol>
</div>
+4 -7
View File
@@ -42,9 +42,6 @@ $bodyMap['registrationDone'] = "안녕하세요.<br/>".
"* 상위 요금제로 업그레이드 하시면, 유효기간은 업그레이드가 적용된 날짜로부터 1년으로 다시 채워집니다.<br/>".
"* 유효기간이 끝나서 비활성화된 계정과 그 안에 있는 모든 정보는, 6개월 후에 자동 삭제됩니다.<br/>".
"<br/>".
"* 아래 URL을 사용하면, 마에스트로 이름이 입력된 로그인 화면이 실행됩니다.<br/>".
"http://chocomae.jinaju.com/login/{{maestro_name}}<br/>".
"<br/>".
"등록하신 마에스트로 계정 정보는 마에스트로 로그인 후, [계정 정보 수정] 화면에서 변경이 가능합니다.<br/>".
"(변경 가능 정보 : 마에스트로 아이디, 이메일, 암호)<br/>".
"<br/>".
@@ -109,10 +106,10 @@ $bodyMap['extensionBankInfo'] = "안녕하세요.<br/>".
"<br/>".
"{{maestro_name}} - 마에스트로 계정의 현재 요금제와 유효기간은 아래와 같습니다.<br/>".
"1) 현재 사용중인 요금제 : {{student_count}}명 ({{price}}원)<br/>".
"2) 유효기간 : {{date}}<br/>".
"2) 유효기간 : {{prev_date}}<br/>".
"<br/>".
"연장을 신청하실 경우, 새로운 유효기간은 아래와 같습니다.<br/>".
"3) 새로운 유효기간 : 2020-11-04<br/>".
"3) 새로운 유효기간 : {{new_available_date}}<br/>".
"<br/>".
"계정 유효기간 연장을 위한 은행 계좌 입금 정보는 아래와 같습니다.<br/>".
"------------------------------------------------------------<br/>".
@@ -137,7 +134,7 @@ $bodyMap['extensionDone'] = "안녕하세요.<br/>".
"[초코마에] 마에스트로 계정의 유효기간 연장을 신청해 주셔서 감사합니다.<br/>".
"<br/>".
"{{maestro_name}} - 마에스트로 계정의 유효기간이 +1년 연장되었습니다.<br/>".
"* 새로운 유효기간 : {{date}}<br/>".
"* 새로운 유효기간 : {{new_available_date}}<br/>".
"<br/>".
"* 상위 요금제로 업그레이드 하시면, 유효기간이 업그레이드한 날짜로부터 1년으로 갱신됩니다.<br/>".
"* 유효기간이 끝나면, 비활성화된 계정과 그 안에 있는 모든 정보가 6개월 후에 자동 삭제됩니다.<br/>".
@@ -180,7 +177,7 @@ $subjectMap['upgradeDone'] = "[초코마에] {{maestro_name}} - 마에스트로
$bodyMap['upgradeDone'] = "안녕하세요.<br/>".
"[초코마에] 마에스트로 계정 요금제 업그레이드를 신청해주셔서 감사합니다.<br/>".
"<br/>".
"{{maestro_name}} - 마에스트로 계정의 요금제가 [ 50명 ({{prev_price}}원) ] 에서 [ 500명 ({{price}}원) ] 으로 업그레이드 되었습니다.<br/>".
"{{maestro_name}} - 마에스트로 계정의 요금제가 [ {{prev_student_count}}명 ({{prev_price}}원) ] 에서 [ {{upgrade_student_count}}명 ({{upgrade_price}}원) ] 으로 업그레이드 되었습니다.<br/>".
"<br/>".
"* 마에스트로 계정 유효기간이 오늘부터 1년으로 다시 채워졌습니다.<br/>".
"<br/>".
+59 -21
View File
@@ -11,19 +11,20 @@ require './../PHPMailer/src/Exception.php';
require './../PHPMailer/src/PHPMailer.php';
require './../PHPMailer/src/SMTP.php';
// include_once "./../lib/send_reply_json.php";
include_once "mail_setting.php";
// Register
function sendMailRegisterBankInfo($maestro_name, $maestro_email, $account_type) {
global $subjectMap, $bodyMap;
global $subjectMap, $bodyMap, $bank_account_no;
// closed beta
$subject = str_replace("{{maestro_name}}", $maestro_name, $subjectMap['closedBetaRegistrationBankInfo']);
$subject = str_replace("{{maestro_name}}", $maestro_name, $subjectMap['registrationBankInfo']);
$body = str_replace("{{maestro_name}}", $maestro_name, $bodyMap['closedBetaRegistrationBankInfo']);
$body = str_replace("{{maestro_name}}", $maestro_name, $bodyMap['registrationBankInfo']);
$body = str_replace("{{student_count}}", get_max_player_count($account_type), $body);
$price = number_format(get_price($account_type));
$body = str_replace("{{price}}", $price, $body);
$body = str_replace("{{bank_account_no}}", $bank_account_no, $body);
return send_naver_mail($maestro_email, $maestro_name, $subject, $body);
}
@@ -31,42 +32,75 @@ function sendMailRegisterBankInfo($maestro_name, $maestro_email, $account_type)
function sendMailRegisterDone($maestro_name, $maestro_email) {
global $subjectMap, $bodyMap;
// closed beta
$subject = str_replace("{{maestro_name}}", $maestro_name, $subjectMap['closedBetaRegistrationDone']);
$subject = str_replace("{{maestro_name}}", $maestro_name, $subjectMap['registrationDone']);
$body = str_replace("{{maestro_name}}", $maestro_name, $bodyMap['closedBetaRegistrationDone']);
$body = str_replace("{{maestro_name}}", $maestro_name, $bodyMap['registrationDone']);
return send_naver_mail($maestro_email, $maestro_name, $subject, $body);
}
// Extend
function sendMailExtensionBankInfo($maestro_name, $available_date, $new_available_date, $maestro_email, $registered_account_type) {
$subject = "Naver 메일 발신 테스트";
$body = "sendMailExtensionBankInfo";
function sendMailExtensionBankInfo($maestro_name, $prev_date, $new_available_date, $maestro_email, $account_type) {
global $subjectMap, $bodyMap, $bank_account_no;
$subject = str_replace("{{maestro_name}}", $maestro_name, $subjectMap['extensionBankInfo']);
$body = str_replace("{{maestro_name}}", $maestro_name, $bodyMap['extensionBankInfo']);
$body = str_replace("{{student_count}}", get_max_player_count($account_type), $body);
$price = number_format(get_price($account_type));
$body = str_replace("{{price}}", $price, $body);
$body = str_replace("{{prev_date}}", $prev_date, $body);
$body = str_replace("{{new_available_date}}", $new_available_date, $body);
$body = str_replace("{{bank_account_no}}", $bank_account_no, $body);
return send_naver_mail($maestro_email, $maestro_name, $subject, $body);
}
function sendMailExtensionDone($maestro_name, $new_available_date, $maestro_email) {
$subject = "Naver 메일 발신 테스트";
$body = "sendMailExtensionDone";
global $subjectMap, $bodyMap;
$subject = str_replace("{{maestro_name}}", $maestro_name, $subjectMap['extensionDone']);
$body = str_replace("{{maestro_name}}", $maestro_name, $bodyMap['extensionDone']);
$body = str_replace("{{new_available_date}}", $new_available_date, $body);
return send_naver_mail($maestro_email, $maestro_name, $subject, $body);
}
// Upgrade
function sendMailUpgradeBankInfo($maestro_name, $maestro_email, $account_type, $upgrade_account_type) {
$subject = "Naver 메일 발신 테스트";
$body = "sendMailUpgradeBankInfo";
function sendMailUpgradeBankInfo($maestro_name, $maestro_email, $prev_account_type, $upgrade_account_type) {
global $subjectMap, $bodyMap, $bank_account_no;
$subject = str_replace("{{maestro_name}}", $maestro_name, $subjectMap['upgradeBankInfo']);
$body = str_replace("{{maestro_name}}", $maestro_name, $bodyMap['upgradeBankInfo']);
$body = str_replace("{{prev_student_count}}", get_max_player_count($prev_account_type), $body);
$prev_price = number_format(get_price($prev_account_type));
$body = str_replace("{{prev_price}}", $prev_price, $body);
$body = str_replace("{{upgrade_student_count}}", get_max_player_count($upgrade_account_type), $body);
$upgrade_price = number_format(get_price($upgrade_account_type));
$body = str_replace("{{upgrade_price}}", $upgrade_price, $body);
$body = str_replace("{{bank_account_no}}", $bank_account_no, $body);
$charge_price = (int)$upgrade_price - (int)$prev_price;
$body = str_replace("{{price}}", $charge_price, $body);
return send_naver_mail($maestro_email, $maestro_name, $subject, $body);
}
function sendMailUpgradeDone($maestro_name, $maestro_email, $account_type, $upgrade_account_type) {
$subject = "Naver 메일 발신 테스트";
$body = "sendMailUpgradeDone";
function sendMailUpgradeDone($maestro_name, $maestro_email, $prev_account_type, $upgrade_account_type) {
global $subjectMap, $bodyMap;
$subject = str_replace("{{maestro_name}}", $maestro_name, $subjectMap['upgradeDone']);
$body = str_replace("{{maestro_name}}", $maestro_name, $bodyMap['upgradeDone']);
$body = str_replace("{{prev_student_count}}", get_max_player_count($prev_account_type), $body);
$prev_price = number_format(get_price($prev_account_type));
$body = str_replace("{{prev_price}}", $prev_price, $body);
$body = str_replace("{{upgrade_student_count}}", get_max_player_count($upgrade_account_type), $body);
$upgrade_price = number_format(get_price($upgrade_account_type));
$body = str_replace("{{upgrade_price}}", $upgrade_price, $body);
return send_naver_mail($maestro_email, $maestro_name, $subject, $body);
}
@@ -97,8 +131,12 @@ function sendMailUpdateMaestroEmail($maestro_name, $maestro_email, $maestro_emai
// experation
function sendMailExperation30days($maestro_name, $maestro_email, $maestro_email_prev) {
$subject = "Naver 메일 발신 테스트";
$body = "sendMailExperation30days";
global $subjectMap, $bodyMap;
$subject = $subjectMap['experation30days'];
$body = str_replace("{{prev_email}}", $maestro_email_prev, $bodyMap['experation30days']);
$body = str_replace("{{update_email}}", $maestro_email, $body);
return send_naver_mail($maestro_email, $maestro_name, $subject, $body);
}