zhangxinlei1996 3 жил өмнө
parent
commit
b6d0b8b011

+ 1 - 1
src/github.com/go-xweb/httpsession/redissessionstore.go

@@ -74,7 +74,7 @@ func (store *redisStore) SetMultiple(id Id, m map[string]interface{}) {
 		userdata[k] = v
 	}
 	timeout := int(store.maxAge.Seconds())
-	if RedisNotLoginKey != "" && m[RedisNotLoginKey] == nil {
+	if RedisNotLoginKey != "" && userdata[RedisNotLoginKey] == nil {
 		timeout = RedisNotLoginExpire
 	}
 	putdata, _ := json.Marshal(userdata)