添加本地定时任务

This commit is contained in:
ap 2022-03-31 14:35:21 +08:00
parent 5023b904e2
commit 56d86f647e
2 changed files with 4 additions and 0 deletions

View File

@ -19,6 +19,7 @@
"@midwayjs/orm": "^3.2.0",
"@midwayjs/socketio": "^3.2.0",
"@midwayjs/static-file": "^3.2.0",
"@midwayjs/task": "^3.2.2",
"@midwayjs/validate": "^3.2.0",
"@midwayjs/view-ejs": "^3.2.0",
"cfork": "^1.8.0",

View File

@ -8,6 +8,7 @@ import * as view from '@midwayjs/view-ejs';
import * as orm from '@midwayjs/orm';
import * as cool from '@cool-midway/core';
import * as file from '@cool-midway/file';
import * as localTask from '@midwayjs/task';
// import * as socketio from '@midwayjs/socketio';
// import * as task from '@cool-midway/task';
// import * as pay from '@cool-midway/pay';
@ -20,6 +21,8 @@ import * as file from '@cool-midway/file';
koa,
// 参数验证 http://midwayjs.org/docs/extensions/validate
validate,
// 本地任务 http://midwayjs.org/docs/extensions/task
localTask,
// 模板渲染 http://midwayjs.org/docs/extensions/render
view,
// 静态文件托管 http://midwayjs.org/docs/extensions/static_file