Finish mzl_dev
This commit is contained in:
+22
-20
@@ -28,29 +28,31 @@ class Emails
|
|||||||
// $email->process();
|
// $email->process();
|
||||||
// });
|
// });
|
||||||
|
|
||||||
// // 拉取新邮件 - 每3小时的第0分钟0秒执行
|
if (getenv('ENVIRONMENT') === 'master') {
|
||||||
// new Crontab('0 0 */3 * * *', function(){
|
// 拉取新邮件 - 每3小时的第0分钟0秒执行
|
||||||
// $email = new EmailsUtils();
|
new Crontab('0 0 */3 * * *', function(){
|
||||||
// $email->uids();
|
$email = new EmailsUtils();
|
||||||
// });
|
$email->uids();
|
||||||
|
});
|
||||||
|
|
||||||
// // 邮件详情 - 每3小时的第10分钟0秒执行
|
// 邮件详情 - 每3小时的第10分钟0秒执行
|
||||||
// new Crontab('0 10 */3 * * *', function(){
|
new Crontab('0 10 */3 * * *', function(){
|
||||||
// $email = new EmailsUtils();
|
$email = new EmailsUtils();
|
||||||
// $email->details();
|
$email->details();
|
||||||
// });
|
});
|
||||||
|
|
||||||
// // 邮件处理 - 每3小时的第20分钟0秒执行
|
// 邮件处理 - 每3小时的第20分钟0秒执行
|
||||||
// new Crontab('0 20 */3 * * *', function(){
|
new Crontab('0 20 */3 * * *', function(){
|
||||||
// $email = new EmailsUtils();
|
$email = new EmailsUtils();
|
||||||
// $email->process();
|
$email->process();
|
||||||
// });
|
});
|
||||||
|
|
||||||
// // 邮件分派 - 每3小时的第30分钟0秒执行
|
// 邮件分派 - 每3小时的第30分钟0秒执行
|
||||||
// new Crontab('0 30 */3 * * *', function(){
|
new Crontab('0 30 */3 * * *', function(){
|
||||||
// $email = new EmailsUtils();
|
$email = new EmailsUtils();
|
||||||
// $email->fenpai();
|
$email->fenpai();
|
||||||
// });
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user