diff --git a/config/env/torrents.js b/config/env/torrents.js index e79a6b66..09462412 100644 --- a/config/env/torrents.js +++ b/config/env/torrents.js @@ -26,6 +26,7 @@ module.exports = { app: { name: commonEnvConfig.variable.site.site_name, domain: commonEnvConfig.variable.site.site_domain, + mailTicketService: true, showDemoWarningPopup: true, cronTimeZone: 'Asia/Shanghai', showDebugLog: commonEnvConfig.variable.settings.console_debug_info || true diff --git a/config/lib/cron-job.js b/config/lib/cron-job.js index a1032dc6..aefa6a00 100644 --- a/config/lib/cron-job.js +++ b/config/lib/cron-job.js @@ -67,7 +67,10 @@ module.exports = function (app) { cronJobs.push(removeGhostPeers()); cronJobs.push(countUsersHnrWarning()); - cronJobs.push(listenServiceEmail()); + + if (appConfig.mailTicketService) { + cronJobs.push(listenServiceEmail()); + } return cronJobs; };