Merge branch 'feature/mzl_dev'
# Conflicts: # app/process/Emails.php
This commit is contained in:
+30
-8
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace app\process;
|
||||
|
||||
use app\crm\model\Customer;
|
||||
use support\Log;
|
||||
use Workerman\Crontab\Crontab;
|
||||
use app\common\utils\email\Emails as EmailsUtils;
|
||||
|
||||
@@ -12,23 +10,47 @@ class Emails
|
||||
|
||||
public function onWorkerStart()
|
||||
{
|
||||
// 拉取新邮件
|
||||
new Crontab('0 */30 * * * *', function(){
|
||||
// // 拉取新邮件
|
||||
// new Crontab('0 */30 * * * *', function(){
|
||||
// $email = new EmailsUtils();
|
||||
// $email->uids();
|
||||
// });
|
||||
|
||||
// // 邮件详情
|
||||
// new Crontab('0 */35 * * * *', function(){
|
||||
// $email = new EmailsUtils();
|
||||
// $email->details();
|
||||
// });
|
||||
|
||||
// // 邮件处理
|
||||
// new Crontab('0 */40 * * * *', function(){
|
||||
// $email = new EmailsUtils();
|
||||
// $email->process();
|
||||
// });
|
||||
|
||||
// 拉取新邮件 - 每3小时的第0分钟0秒执行
|
||||
new Crontab('0 0 */3 * * *', function(){
|
||||
$email = new EmailsUtils();
|
||||
$email->uids();
|
||||
});
|
||||
|
||||
// 邮件详情
|
||||
new Crontab('0 */35 * * * *', function(){
|
||||
// 邮件详情 - 每3小时的第10分钟0秒执行
|
||||
new Crontab('0 10 */3 * * *', function(){
|
||||
$email = new EmailsUtils();
|
||||
$email->details();
|
||||
});
|
||||
|
||||
// 邮件处理
|
||||
new Crontab('0 */40 * * * *', function(){
|
||||
// 邮件处理 - 每3小时的第20分钟0秒执行
|
||||
new Crontab('0 20 */3 * * *', function(){
|
||||
$email = new EmailsUtils();
|
||||
$email->process();
|
||||
});
|
||||
|
||||
// 邮件分派 - 每3小时的第30分钟0秒执行
|
||||
new Crontab('0 30 */3 * * *', function(){
|
||||
$email = new EmailsUtils();
|
||||
$email->fenpai();
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user