mirror of
https://github.com/astaxie/beego.git
synced 2024-11-25 18:50:55 +00:00
fix sesseion redis db error
This commit is contained in:
parent
4138fe0217
commit
2dca48f26e
@ -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