Merge branch 'develop'

This commit is contained in:
mzl
2025-08-07 10:16:22 +08:00
parent f9b82185a2
commit 63e532f199
23 changed files with 3038 additions and 133 deletions
+22 -20
View File
@@ -28,29 +28,31 @@ class Emails
// $email->process();
// });
// 拉取新邮件 - 每3小时的第0分钟0秒执行
new Crontab('0 0 */3 * * *', function(){
$email = new EmailsUtils();
$email->uids();
});
if (getenv('ENVIRONMENT') === 'master') {
// 拉取新邮件 - 每3小时的第0分钟0秒执行
new Crontab('0 0 */3 * * *', function(){
$email = new EmailsUtils();
$email->uids();
});
// 邮件详情 - 每3小时的第10分钟0秒执行
new Crontab('0 10 */3 * * *', function(){
$email = new EmailsUtils();
$email->details();
});
// 邮件详情 - 每3小时的第10分钟0秒执行
new Crontab('0 10 */3 * * *', function(){
$email = new EmailsUtils();
$email->details();
});
// 邮件处理 - 每3小时的第20分钟0秒执行
new Crontab('0 20 */3 * * *', function(){
$email = new EmailsUtils();
$email->process();
});
// 邮件处理 - 每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();
});
// 邮件分派 - 每3小时的第30分钟0秒执行
new Crontab('0 30 */3 * * *', function(){
$email = new EmailsUtils();
$email->fenpai();
});
}
}
}