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]
 }
 
 //同时获取多个值