...
|
...
|
@@ -2,6 +2,7 @@ |
|
|
|
|
|
use Model\listsSql;
|
|
|
|
|
|
include_once "../vendor/autoload.php";
|
|
|
|
|
|
/**
|
|
|
* 只有黑格 在使用此业务
|
...
|
...
|
@@ -130,24 +131,6 @@ class HotMail { |
|
|
}
|
|
|
|
|
|
|
|
|
swoole_set_process_name('hot-email-run-man');
|
|
|
|
|
|
$pm = new Swoole\Process\Manager();
|
|
|
|
|
|
$pm->addBatch(1,function (){
|
|
|
|
|
|
swoole_set_process_name('hot-email-run');
|
|
|
|
|
|
include_once "../vendor/autoload.php";
|
|
|
|
|
|
// while(1){
|
|
|
new HotMail();
|
|
|
// 执行完了暂停5分钟在执行
|
|
|
sleep(40);
|
|
|
// }
|
|
|
|
|
|
},true);
|
|
|
|
|
|
$pm->start();
|
|
|
new HotMail();
|
|
|
|
|
|
|
...
|
...
|
|