Browse Source

定时更新时间

release_0.0.2
巴林闲侠 3 years ago
parent
commit
707f8437fe
  1. 6
      code/VideoAccess-VCMP/api/app/lib/schedule/freshYingshiMsg.js

6
code/VideoAccess-VCMP/api/app/lib/schedule/freshYingshiMsg.js

@ -4,7 +4,8 @@ const moment = require('moment')
module.exports = function (app, opts) { module.exports = function (app, opts) {
const freshYingshiState = schedule.scheduleJob( const freshYingshiState = schedule.scheduleJob(
// '* * 4 * * *', // '* * 4 * * *',
'*/10 * * * *', // '*/10 * * * *',
'0 27 4 * * *',
async () => { async () => {
try { try {
const startTime = moment() const startTime = moment()
@ -118,7 +119,8 @@ module.exports = function (app, opts) {
const freshYingshiPlayUrl = schedule.scheduleJob( const freshYingshiPlayUrl = schedule.scheduleJob(
// '0 0 4 */1 *', // '0 0 4 */1 *',
'*/30 * * * *', // '*/30 * * * *',
'0 34 5 * * *',
async () => { async () => {
try { try {
const { models } = app.fs.dc const { models } = app.fs.dc

Loading…
Cancel
Save