浏览代码

密码存库

lianbingjie 6 年之前
父节点
当前提交
945c6c8583
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/jfw/jyutil/sessionEncryption.go

+ 2 - 2
src/jfw/jyutil/sessionEncryption.go

@@ -156,7 +156,7 @@ func InitEncryptionStruct() *EncryptionStruct {
 			log.Printf("InitEncryptionStruct save %s redis err %:v\n", byteArr, err)
 			return
 		}
-		redis.Put("other", "sessionEncryption", string(byteArr), -1)
+		redis.Put("session", "sessionEncryption", string(byteArr), -1)
 	}()
 	return &encryStruct
 }
@@ -194,6 +194,6 @@ func (e *EncryptionStruct) Flush() {
 			log.Printf("InitEncryptionStruct save %s redis err %:v\n", byteArr, err)
 			return
 		}
-		redis.Put("other", "sessionEncryption", string(byteArr), -1)
+		redis.Put("session", "sessionEncryption", string(byteArr), -1)
 	}()
 }