pennyMorant / zeropanel

MIT License
38 stars 15 forks source link

php xcat Job SendMail error #20

Open hulisang opened 1 year ago

hulisang commented 1 year ago

当我使用php xcat Job SendMail命令时输出并不是正常的成功,以下为输出:

PHP Fatal error:  Uncaught Error: Undefined constant "App\Command\BASE_PATH" in /www/wwwroot/xxx/src/Command/Job.php:204
Stack trace:
#0 /www/wwwroot/xxx/src/Command/Job.php(43): App\Command\Job->SendMail()
#1 /www/wwwroot/xxx/xcat(49): App\Command\Job->boot()
#2 {main}
  thrown in /www/wwwroot/xxx/src/Command/Job.php on line 204

Fatal error: Uncaught Error: Undefined constant "App\Command\BASE_PATH" in /www/wwwroot/xxx/src/Command/Job.php:204
Stack trace:
#0 /www/wwwroot/xxx/src/Command/Job.php(43): App\Command\Job->SendMail()
#1 /www/wwwroot/xxx/xcat(49): App\Command\Job->boot()
#2 {main}
  thrown in /www/wwwroot/xxx/src/Command/Job.php on line 204

我不知道怎么解决它,看起来是没有定义App\Command\BASE_PATH 另外,邮件的功能似乎是正常的