master
yutent 2023-11-01 15:51:45 +08:00
parent 52b8e3553e
commit 655c5e34fa
2 changed files with 2 additions and 2 deletions

View File

@ -94,7 +94,7 @@ export default class Controller {
this.response.cookie(key, val, opt) this.response.cookie(key, val, opt)
} }
// 会话读写 // 会话读写, 返回的是Promise对象
session(key, val) { session(key, val) {
let { ssid } = this.request let { ssid } = this.request
if (this.context.$$session) { if (this.context.$$session) {

View File

@ -1,6 +1,6 @@
{ {
"name": "@gm5/controller", "name": "@gm5/controller",
"version": "2.0.1", "version": "2.0.2",
"type": "module", "type": "module",
"description": "控制器基类。", "description": "控制器基类。",
"main": "index.js", "main": "index.js",