Browse Source

修改session

wangchuanjin 2 năm trước cách đây
mục cha
commit
0c8ff7f798
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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]
 }
 
 //同时获取多个值