Add: maestro log DB

This commit is contained in:
2018-10-30 12:27:55 +09:00
parent 90c8ffa3a6
commit 542afc69d9
6 changed files with 95 additions and 3 deletions
+2
View File
@@ -5,6 +5,7 @@ include "./../setup/connect_db.php";
include "./../lib/send_reply_json.php";
include "./../lib/maestro_account_info.php";
include "./../lib/db_maestro.php";
include "./../lib/maestro_log.php";
include "./../mail/mail_setting.php";
include "./../mail/send_mail.php";
@@ -32,6 +33,7 @@ if($maestroID === null) {
}
sendMailRegisterBankInfo($maestro_name, $email, $account_type);
insertMaestroLog("add_maestro", $maestroID, $maestro_name." / ".$email." / ".$account_type);
send_result_success();
exit;
@@ -5,6 +5,7 @@ include "./../lib/send_reply_json.php";
include "./../setup/connect_db.php";
include "./../lib/maestro_account_info.php";
include "./../lib/db_maestro.php";
include "./../lib/maestro_log.php";
include "./../mail/mail_setting.php";
include "./../mail/send_mail.php";
@@ -25,11 +26,16 @@ $email_prev = $info["email"];
update_maestro_info($maestroID, $maestroName, $email);
if($maestroName != $maestro_name_prev)
sendMailUpdateMaestroName($maestroName, $maestro_name_prev, $email);
if($email != $email_prev)
if($maestroName != $maestro_name_prev) {
sendMailUpdateMaestroName($maestroName, $maestro_name_prev, $email);
insertMaestroLog("update_maestro_name", $maestroID, $maestro_name_prev." -> ".$maestroName);
}
if($email != $email_prev) {
sendMailUpdateMaestroEmail($maestroName, $email, $email_prev);
insertMaestroLog("update_maestro_email", $maestroID, $email_prev." -> ".$email);
}
send_result_success();
exit;