浏览代码

修改session

wangchuanjin 2 年之前
父节点
当前提交
0c8ff7f798
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      go-xweb/httpsession/redissessionstore.go

+ 1 - 1
go-xweb/httpsession/redissessionstore.go

@@ -32,7 +32,7 @@ func (store *redisStore) SetMaxAge(maxAge time.Duration) {
 
 //取数据,使用redis的超时,来控制session超时
 func (store *redisStore) Get(id Id, key string) interface{} {
-	return store.GetMultiple(id)
+	return store.GetMultiple(id)[key]
 }
 
 //同时获取多个值