diff --git a/src/web/main/reopen_service.html b/src/web/main/reopen_service.html new file mode 100644 index 0000000..15fac88 --- /dev/null +++ b/src/web/main/reopen_service.html @@ -0,0 +1,62 @@ + + + + + + + + 베타 서비스 알림 | 초코마에 + + + + + + + + + + + + + + + + + + + + + + +
+ + + +
+
+ + + +
+ + + + + \ No newline at end of file diff --git a/src/web/module/home_section.html b/src/web/module/home_section.html index efe7055..3c7ed78 100644 --- a/src/web/module/home_section.html +++ b/src/web/module/home_section.html @@ -3,13 +3,13 @@ $(document).ready(function() { // showServiceCloseMessage(); showErrorMessage( - '(04월 30일) 알림
\ - * 초코마에 베타 서비스 시작
\ - * 2022년 07월까지 무료, 08월 이후 유료화 예정
\ + '(07월 02일) 알림
\ + * 초코마에 유료 정식 서비스 시작
\ + * 계정 유효기간 연장 or 업그레이드 메뉴가 활성화되었습니다.
\
\ - \ + \ \ -  베타 서비스 + 8월 유료화 안내' + 정식 유료 서비스 - 자세한 내용 보기' , 'info' ); }); @@ -161,16 +161,13 @@ function experienceMaestro() {
-
@@ -186,7 +183,7 @@ function experienceMaestro() {
- 마에스트로 가입 (베타 기간동안 무료) + 마에스트로 가입
diff --git a/src/web/module/home_section_reopen_service.html b/src/web/module/home_section_reopen_service.html new file mode 100644 index 0000000..06c246b --- /dev/null +++ b/src/web/module/home_section_reopen_service.html @@ -0,0 +1,99 @@ +
+ +
+

초코마에, 8월 정식 유료 서비스 안내

+
+ +
+
8월 1일, 정식 유료 서비스 시작
+
+
2022년 7월 31일까지 무료, 8월 1일부터 유료
+

+

    +
  • 5월부터 6월까지 약 2개월간 개인 서버에서 시험적으로 운영해 보았습니다.
  • +
  • 큰 문제 없이 서비스가 진행되어서 8월 1일부터 유료 서비스로 전환합니다.
  • +
+ +

+
+
+
+ +
+
유료 결제 방법
+
+
(방법 1) 계정 유효기간 연장
+

+

    +
  • 현재 사용중이신 베타 계정의 만료일은 7월 31일로 설정되어 있습니다.
  • +
  • + 만료일 30일 전(7월 2일)부터 마에스트로 관리 화면 홈에 [유효기간 연장] 버튼이 보여집니다. +
    + +
  • +
  • [유효기간 연장] 버튼을 눌러서 계정 유효기간을 신청합니다.
  • +
  • + 연장 신청 화면에서 보여드릴 초코마에 카카오뱅크 계좌로 송금해주세요. (보내는 사람 이름은 반드시 마에스트로 이름으로 기입 부탁드립니다) +
    + +
  • +
+

+
(방법 2) 계정 업그레이드
+

+

    +
  • + 마에스트로 로그인을 하면 관리 화면 홈 상단 우측에 [업그레이드] 버튼이 있습니다. +
    + +
  • +
  • + [업그레이드] 버튼을 눌러서 상위 요금제로 업그레이드를 신청합니다. +
    + +
  • +
  • + 업그레이드 신청 화면에서 보여드릴 초코마에 카카오뱅크 계좌로 송금해주세요. (송금자명은 반드시 마에스트로 이름으로 기입 부탁드립니다) +
    + +
  • +
+

+ + +
+
+
+ +
+
유료 서비스로 전환하며
+
+
방과후/초등학교 선생님께
+

+

    +
  • 초코마에 서비스를 다시 찾아주셔서 감사합니다.
  • +
    +
  • 현재 회사를 다니고 있기 때문에 추가적인 개발은 못하는 상황입니다.
  • +
  • 웹 개발 일을 열심히 배워서 내년이나 이후에는 개선된 서비스를 제공할 수 있도록 노력하겠습니다.
  • +
+

+
+
+
+ +
diff --git a/src/web/module/maestro_extension.html b/src/web/module/maestro_extension.html index fa31ac8..05d5b4d 100644 --- a/src/web/module/maestro_extension.html +++ b/src/web/module/maestro_extension.html @@ -140,7 +140,7 @@ function extendMaestroAccount() {
- +
diff --git a/src/web/module/maestro_section_main.html b/src/web/module/maestro_section_main.html index b84b653..e5fdba1 100644 --- a/src/web/module/maestro_section_main.html +++ b/src/web/module/maestro_section_main.html @@ -23,13 +23,13 @@ $(document).ready(function() { // showServiceCloseMessage(); showErrorMessage( - '(04월 30일) 알림
\ - * 초코마에 베타 서비스 시작
\ - * 2022년 07월까지 무료, 08월 이후 유료화 예정
\ + '(07월 02일) 알림
\ + * 초코마에 유료 정식 서비스 시작
\ + * 계정 유효기간 연장 or 업그레이드 메뉴가 활성화되었습니다.
\
\ - \ + \ \ -  베타 서비스 + 8월 유료화 안내' + 정식 유료 서비스 - 자세한 내용 보기' , 'info' ); }); @@ -214,8 +214,7 @@ function showModal(popupModalID, popupContentID, contentFileName) { diff --git a/src/web/module/maestro_section_register.html b/src/web/module/maestro_section_register.html index 6500757..f74d96e 100644 --- a/src/web/module/maestro_section_register.html +++ b/src/web/module/maestro_section_register.html @@ -530,38 +530,38 @@ $('#myTab a').on('click', function (e) {
- +
- +
- +
- +
계정 활성화 날짜로부터 1년동안 유효합니다. @@ -665,23 +665,13 @@ $('#myTab a').on('click', function (e) {
-
-

베타 기간동안 무료

- -
    -
  • 7월 말까지 무료로 사용하세요.
  • -
  • 정식 서비스로 전환되면, 요금제 금액만큼 결제하시거나 업그레이드해서 1년동안 사용하실 수 있습니다.
  • -
- -
-

계정 활성화 안내

    -
  • 계정 생성 신청이 확인되는대로 마에스트로 아이디를 활성화 해드리겠습니다.
  • - -
  • 수작업으로 확인하고 계정을 활성화하고 있어서 시간이 조금 걸립니다. 양해 부탁드립니다.
  • - +
  • 입금 내역이 확인되는대로 마에스트로 아이디를 활성화 해드리겠습니다.
  • +
  • (수작업으로 확인하고 계정을 활성화하고 있어서 시간이 조금 걸립니다. 양해 부탁드립니다)
  • +
  • 마에스트로 계정이 활성화되는대로 즉시 알림 메일을 드리겠습니다.
diff --git a/src/web/module/maestro_upgrade.html b/src/web/module/maestro_upgrade.html index 854bc3b..85b72fa 100644 --- a/src/web/module/maestro_upgrade.html +++ b/src/web/module/maestro_upgrade.html @@ -202,7 +202,6 @@ function upgradeMaestroInfo(accountType) {
  • 모든 요금제의 기능은 동일합니다.
  • 1년동안 유효합니다.
  • 높은 요금제로 올릴 수는 있지만, 낮은 요금제로 내릴 수는 없습니다.
  • -
  • 서비스 종료일(2021년 2월 28일)까지 무료로 업그레이드 해 드립니다.
  • @@ -274,9 +273,9 @@ function upgradeMaestroInfo(accountType) {
    1. 위에서 업그레이드 하실 상품을 선택하세요.
    2. -
    3. 업그레이드를 신청하신 후, 추가 금액을 계좌이체해 주세요.하시면, 서비스 종료일(2021년 2월 28일)까지 무료로 업그레이드 해 드립니다.
    4. +
    5. 업그레이드를 신청하신 후, 추가 금액을 계좌이체해 주세요.
    6. 신청 내역이 확인되는대로 마에스트로 계정의 요금제를 변경해 드리겠습니다.
    7. -
    8. 기존 요금제 기간이 얼마나 남았던가에 상관없이, 유효 기간은 업그레이드가 적용된 날짜로부터 1년으로 다시 채워집니다.
      +
    9. 기존 요금제 기간이 얼마나 남았던가에 상관없이, 유효 기간은 업그레이드가 적용된 날짜로부터 1년으로 다시 채워집니다.
    diff --git a/src/web/server/mail/mail_contents.php b/src/web/server/mail/mail_contents.php index a241393..0ef30d5 100644 --- a/src/web/server/mail/mail_contents.php +++ b/src/web/server/mail/mail_contents.php @@ -42,9 +42,6 @@ $bodyMap['registrationDone'] = "안녕하세요.
    ". "* 상위 요금제로 업그레이드 하시면, 유효기간은 업그레이드가 적용된 날짜로부터 1년으로 다시 채워집니다.
    ". "* 유효기간이 끝나서 비활성화된 계정과 그 안에 있는 모든 정보는, 6개월 후에 자동 삭제됩니다.
    ". "
    ". -"* 아래 URL을 사용하면, 마에스트로 이름이 입력된 로그인 화면이 실행됩니다.
    ". -"http://chocomae.jinaju.com/login/{{maestro_name}}
    ". -"
    ". "등록하신 마에스트로 계정 정보는 마에스트로 로그인 후, [계정 정보 수정] 화면에서 변경이 가능합니다.
    ". "(변경 가능 정보 : 마에스트로 아이디, 이메일, 암호)
    ". "
    ". @@ -109,10 +106,10 @@ $bodyMap['extensionBankInfo'] = "안녕하세요.
    ". "
    ". "{{maestro_name}} - 마에스트로 계정의 현재 요금제와 유효기간은 아래와 같습니다.
    ". "1) 현재 사용중인 요금제 : {{student_count}}명 ({{price}}원)
    ". -"2) 유효기간 : {{date}}
    ". +"2) 유효기간 : {{prev_date}}
    ". "
    ". "연장을 신청하실 경우, 새로운 유효기간은 아래와 같습니다.
    ". -"3) 새로운 유효기간 : 2020-11-04
    ". +"3) 새로운 유효기간 : {{new_available_date}}
    ". "
    ". "계정 유효기간 연장을 위한 은행 계좌 입금 정보는 아래와 같습니다.
    ". "------------------------------------------------------------
    ". @@ -137,7 +134,7 @@ $bodyMap['extensionDone'] = "안녕하세요.
    ". "[초코마에] 마에스트로 계정의 유효기간 연장을 신청해 주셔서 감사합니다.
    ". "
    ". "{{maestro_name}} - 마에스트로 계정의 유효기간이 +1년 연장되었습니다.
    ". -"* 새로운 유효기간 : {{date}}
    ". +"* 새로운 유효기간 : {{new_available_date}}
    ". "
    ". "* 상위 요금제로 업그레이드 하시면, 유효기간이 업그레이드한 날짜로부터 1년으로 갱신됩니다.
    ". "* 유효기간이 끝나면, 비활성화된 계정과 그 안에 있는 모든 정보가 6개월 후에 자동 삭제됩니다.
    ". @@ -180,7 +177,7 @@ $subjectMap['upgradeDone'] = "[초코마에] {{maestro_name}} - 마에스트로 $bodyMap['upgradeDone'] = "안녕하세요.
    ". "[초코마에] 마에스트로 계정 요금제 업그레이드를 신청해주셔서 감사합니다.
    ". "
    ". -"{{maestro_name}} - 마에스트로 계정의 요금제가 [ 50명 ({{prev_price}}원) ] 에서 [ 500명 ({{price}}원) ] 으로 업그레이드 되었습니다.
    ". +"{{maestro_name}} - 마에스트로 계정의 요금제가 [ {{prev_student_count}}명 ({{prev_price}}원) ] 에서 [ {{upgrade_student_count}}명 ({{upgrade_price}}원) ] 으로 업그레이드 되었습니다.
    ". "
    ". "* 마에스트로 계정 유효기간이 오늘부터 1년으로 다시 채워졌습니다.
    ". "
    ". diff --git a/src/web/server/mail/send_naver_mail.php b/src/web/server/mail/send_naver_mail.php index 396ed62..0168e79 100644 --- a/src/web/server/mail/send_naver_mail.php +++ b/src/web/server/mail/send_naver_mail.php @@ -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); }