Commit bca39510 authored by 姚广胤's avatar 姚广胤

启动

parent 46e43446
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: ygy * @Author: ygy
* @Date: 2018-03-14 19:40:01 * @Date: 2018-03-14 19:40:01
* @Last Modified by: ygy * @Last Modified by: ygy
* @Last Modified time: 2018-03-28 19:47:08 * @Last Modified time: 2018-03-28 19:49:53
*/ */
const Koa = require('koa'); const Koa = require('koa');
const send = require('koa-send'); const send = require('koa-send');
...@@ -60,7 +60,7 @@ app.use(rest.restify()); ...@@ -60,7 +60,7 @@ app.use(rest.restify());
app.use(router()); app.use(router());
// start task schedule // start task schedule
schedule.scheduleJob({ hour: 19, minute: 48, second: 0 }, () => { schedule.scheduleJob({ hour: 7, minute: 30, second: 0 }, () => {
task.runTiming(); task.runTiming();
}); });
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: ygy * @Author: ygy
* @Date: 2018-03-14 19:39:46 * @Date: 2018-03-14 19:39:46
* @Last Modified by: ygy * @Last Modified by: ygy
* @Last Modified time: 2018-03-28 19:45:21 * @Last Modified time: 2018-03-28 19:49:05
*/ */
const historyService = require('../services/historyService'); const historyService = require('../services/historyService');
...@@ -34,7 +34,7 @@ const runTiming = async () => { ...@@ -34,7 +34,7 @@ const runTiming = async () => {
let iterateTime; let iterateTime;
if (process.env.NODE_ENV === 'production') { if (process.env.NODE_ENV === 'production') {
iterateTime = 2; iterateTime = 20;
} else { } else {
iterateTime = 2; iterateTime = 2;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment