关于woker进程找不到类的问题

qwejkl1022

我在woker类中已经引用了这个类,但是在定时任务执行中一直找不到这个类
Workerman version:3.5.16          PHP version:5.6.27
------------------------ WORKERS -------------------------------
worker               listen                              processes status
StatisticWeb         http://0.0.0.0:55757                1         
StatisticProvider    text://0.0.0.0:55858                1         
StatisticWorker      statistic://0.0.0.0:55656           1         
StatisticFinder      text://0.0.0.0:55858                1         
tistics\Lib\MySendMail' not found in E:\fengshen\workerman-statistics\Applications\Statistics\Bootstrap\StatisticWorker.php on line 418
cWorker.php on line 418
Worker process terminated with ERROR: E_ERROR "Class 'Statistics\Lib\MySendMail' not found in E:\fengshen\workerman-statistics\Applications\Statistics\Bootstrap\StatisticWorker.php on line 418"
process E:\fengshen\workerman-statistics\Applications\Statistics\start_worker.php terminated and try to restart
StatisticWorker      statistic://0.0.0.0:55656           1         

2932 2 0
2个回答

xiuwang

把类文件require_once进去就行了

qwejkl1022

试过了require_once,use各种方法,就是找不到这个类

年代过于久远,无法发表回答
×
🔝