以后一定绕路走,虽然这个代码都跑了7年了,最近才出问题,不过还是出问题了。
[2020-08-29 19:28:12]watch message. Started.
[2020-08-29 19:28:24]run job:
Array
(
[id] => 12
[body] => {"type":"quick-mail","qm_id":7087}
)
PHP Notice: QuickMail\Qm::notice(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "PHPMailer\PHPMailer\PHPMailer" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide an autoloader to load the class definition in /home/www/webroot/src/QuickMail/Qm.php on line 127
PHP Notice: QuickMail\Qm::notice(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "PHPMailer\PHPMailer\PHPMailer" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide an autoloader to load the class definition in /home/www/webroot/src/QuickMail/Qm.php on line 134
[2020-08-29 19:28:24]
[
"[2020-08-29 19:28:24]set flag 7087 : 1",
"[2020-08-29 19:28:24]start unserialize",
"[2020-08-29 19:28:24]end unserialize",
"[2020-08-29 19:28:24]can not notice"
]
[2020-08-29 19:28:24]exec result: 2
[2020-08-29 19:28:24]run job:
Array
(
[id] => 12
[body] => {"type":"quick-mail","qm_id":7087}
)
PHP Notice: QuickMail\Qm::notice(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "PHPMailer\PHPMailer\PHPMailer" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide an autoloader to load the class definition in /home/www/webroot/src/QuickMail/Qm.php on line 127
PHP Notice: QuickMail\Qm::notice(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "PHPMailer\PHPMailer\PHPMailer" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide an autoloader to load the class definition in /home/www/webroot/src/QuickMail/Qm.php on line 134
[2020-08-29 19:28:24]
[
"[2020-08-29 19:28:24]set flag 7087 : 1",
"[2020-08-29 19:28:24]start unserialize",
"[2020-08-29 19:28:24]end unserialize",
"[2020-08-29 19:28:24]can not notice"
]
[2020-08-29 19:28:24]exec result: 2
测试邮件功能