From 88c599b996c1ec730516ff8a9945351d5e1372b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=87=E5=A4=A9?= Date: Tue, 6 Oct 2020 10:56:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0session=E5=AD=98=E5=82=A8?= =?UTF-8?q?=E5=99=A8=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/index.js | 1 - middleware/router.js | 2 +- package.json | 8 +++++--- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/config/index.js b/config/index.js index 4c7577e..a69f5e6 100644 --- a/config/index.js +++ b/config/index.js @@ -11,7 +11,6 @@ export default { db: {}, session: { enabled: false, - type: 'native', // native 或 redis ttl: 3600 * 24 * 7, domain: '', // NODESSID域, 默认等于domain level: 0, // 校验级别, 0: 不校验客户端, 2: ua, 4: ip, 6: ua + ip diff --git a/middleware/router.js b/middleware/router.js index 620676e..96d13d7 100644 --- a/middleware/router.js +++ b/middleware/router.js @@ -4,7 +4,7 @@ * @date 2020/09/18 15:16:29 */ -export default function(req, res, next) { +export default function (req, res, next) { var debug = this.get('debug') // 1. 先判断控制器是否存在 diff --git a/package.json b/package.json index e22db17..ad8cba3 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,12 @@ { "name": "@gm5/core", - "version": "1.0.0", + "version": "1.0.1", "type": "module", "description": "Five.js, 一个轻量级的nodejs mvc框架 旨在简单易用, 5分钟即可上手", "author": "yutent ", "main": "index.js", "dependencies": { - "@gm5/session": "^1.0.0", + "@gm5/session": "^1.1.0", "@gm5/request": "^1.2.1", "@gm5/response": "^1.3.1", "@gm5/controller": "^1.0.0", @@ -21,7 +21,9 @@ "type": "git", "url": "https://github.com/bytedo/gmf.core.git" }, - "keywords": ["five, fivejs, node-five, five.js, nodejs, mvc, koa, express"], + "keywords": [ + "five, fivejs, node-five, five.js, nodejs, mvc, koa, express" + ], "engines": { "node": ">=10.0.0" },