mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 20:50:54 +00:00
fix sesseion redis db error
This commit is contained in:
parent
98289cd8de
commit
740a526105
@ -145,7 +145,7 @@ func (rp *RedisProvider) SessionInit(maxlifetime int64, savePath string) error {
|
||||
rp.password = configs[2]
|
||||
}
|
||||
if len(configs) > 3 {
|
||||
dbnum, err := strconv.Atoi(configs[1])
|
||||
dbnum, err := strconv.Atoi(configs[3])
|
||||
if err != nil || dbnum < 0 {
|
||||
rp.dbNum = 0
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user