mm_os 1.7.0 → 1.7.1

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.
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.1",
4
4
  "description": "这是超级美眉服务端框架,用于快速构建应用程序。",
5
5
  "main": "index.js",
6
6
  "scripts": {