mm_os 1.7.0 → 1.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,6 +5,8 @@
5
5
  "description": "描述任务使用方法",
6
6
  // 任务名称,用于动态增删改查
7
7
  "name": "demo",
8
+ // 状态 0未启用,1启用
9
+ "state": 1,
8
10
  // 任务驱动的脚本文件
9
11
  "func_file": "./index.js",
10
12
  // 任务执行次数,执行次数达标后不再执行。0为不限次数,一直执行
package/index.js CHANGED
@@ -231,7 +231,7 @@ Soa.prototype.main = async function(state) {
231
231
  }
232
232
 
233
233
  if (cg.sys && cg.sys.task) {
234
- console.log('启动定时任务~');
234
+ console.log('【启动定时任务】');
235
235
  $.task.update();
236
236
  $.task.run();
237
237
  }
@@ -10,9 +10,9 @@ module.exports = function(server, config) {
10
10
  if (config.static) {
11
11
  server.use(statics(
12
12
  config.static_path.fullname(), {
13
- maxAge: 60 * 60 * 24 * 7,
14
- gzip: true,
15
- brotli: true
13
+ maxAge: config.max_age || 0,
14
+ gzip: config.compress || false,
15
+ brotli: config.compress || false
16
16
  }));
17
17
  // 使用多路径静态文件处理器
18
18
  if ($.Static) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mm_os",
3
- "version": "1.7.0",
3
+ "version": "1.7.2",
4
4
  "description": "这是超级美眉服务端框架,用于快速构建应用程序。",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -36,7 +36,7 @@
36
36
  "koa-websocket": "^7.0.0",
37
37
  "mm_check": "^1.4.4",
38
38
  "mm_excel": "^1.1.1",
39
- "mm_expand": "^1.5.9",
39
+ "mm_expand": "^1.6.1",
40
40
  "mm_html": "^1.1.1",
41
41
  "mm_koa_proxy": "^1.0.0",
42
42
  "mm_logs": "^1.1.0",