wangchuanjin 2 жил өмнө
parent
commit
0c8ff7f798

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