From 655c5e34fa9e3c9eaacc1106951dd4ddc8752ac2 Mon Sep 17 00:00:00 2001 From: yutent Date: Wed, 1 Nov 2023 15:51:45 +0800 Subject: [PATCH] update --- index.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 198837d..928ea43 100644 --- a/index.js +++ b/index.js @@ -94,7 +94,7 @@ export default class Controller { this.response.cookie(key, val, opt) } - // 会话读写 + // 会话读写, 返回的是Promise对象 session(key, val) { let { ssid } = this.request if (this.context.$$session) { diff --git a/package.json b/package.json index 11981e0..acf458c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@gm5/controller", - "version": "2.0.1", + "version": "2.0.2", "type": "module", "description": "控制器基类。", "main": "index.js",