Commit 320804bd authored by 顾文旭's avatar 顾文旭

email

parent 1224dc15
...@@ -363,6 +363,6 @@ class ColonelorderController extends Job ...@@ -363,6 +363,6 @@ class ColonelorderController extends Job
*/ */
private function loggerError($log) private function loggerError($log)
{ {
JobLog::getInstance()->error('colonel_distributor_order', $log, null, 'bp-server@yidian-inc.com')->output(); JobLog::getInstance()->error('colonel_distributor_order', $log, null, 'guwenxu@yidian-inc.com')->output();
} }
} }
...@@ -241,6 +241,6 @@ class ColonelwalletController extends Job ...@@ -241,6 +241,6 @@ class ColonelwalletController extends Job
*/ */
private function loggerError($log) private function loggerError($log)
{ {
JobLog::getInstance()->error('colonel_distributor_wallet', $log, null, 'bp-server@yidian-inc.com')->output(); JobLog::getInstance()->error('colonel_distributor_wallet', $log, null, 'guwenxu@yidian-inc.com')->output();
} }
} }
...@@ -193,7 +193,7 @@ class Daemon ...@@ -193,7 +193,7 @@ class Daemon
// $to = 'api@yidian-inc.com'; // $to = 'api@yidian-inc.com';
$to = 'zhangyu1@yidian-inc.com'; $to = 'zhangyu1@yidian-inc.com';
Email::sendMail('guwenxu@yidian-inc.com', $to, $subject, $mail_body); Email::sendMail('bp-noreply@yidian-inc.com', $to, $subject, $mail_body);
} }
} }
} }
......
...@@ -74,7 +74,7 @@ class FileLog ...@@ -74,7 +74,7 @@ class FileLog
$log .= ' [debug_backtrace info: ]' . print_r(debug_backtrace(), 1); $log .= ' [debug_backtrace info: ]' . print_r(debug_backtrace(), 1);
error_log($log); error_log($log);
if (empty($mail_to)) { if (empty($mail_to)) {
$mail_to = 'bp-server@yidian-inc.com'; $mail_to = 'guwenxu@yidian-inc.com';
} }
$subject = 'App api #' . $signature . '# ' . $_SERVER['SERVER_NAME'] . ' (' . $_SERVER['SERVER_ADDR'] . ') Alert Message'; $subject = 'App api #' . $signature . '# ' . $_SERVER['SERVER_NAME'] . ' (' . $_SERVER['SERVER_ADDR'] . ') Alert Message';
$body = 'Error: ' . $signature . "\n\n"; $body = 'Error: ' . $signature . "\n\n";
...@@ -88,7 +88,7 @@ class FileLog ...@@ -88,7 +88,7 @@ class FileLog
} }
if (self::shouldSendEmail(md5($signature)) === true) { if (self::shouldSendEmail(md5($signature)) === true) {
foreach ($mail_to as $mail) { foreach ($mail_to as $mail) {
Email::sendMail('guwenxu@yidian-inc.com', $mail, $subject, $body); Email::sendMail('bp-noreply@yidian-inc.com', $mail, $subject, $body);
} }
} }
} }
......
...@@ -26,7 +26,7 @@ class Email ...@@ -26,7 +26,7 @@ class Email
return false; return false;
} }
if (empty($from)) { if (empty($from)) {
$from = 'guwenxu@yidian-inc.com'; $from = 'bp-noreply@yidian-inc.com';
} }
try { try {
$email = explode('@', $from); $email = explode('@', $from);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment