...
|
...
|
@@ -32,7 +32,7 @@ func init() { |
|
|
err := redis.InitWithDb(100, redisSource, beego.AppConfig.String("redis_auth"), "0")
|
|
|
if err != nil {
|
|
|
log.Fatal("connect to redis error address:", beego.AppConfig.String("redis_add_port"), beego.AppConfig.String("redis_auth"), err)
|
|
|
panic(err)
|
|
|
//panic(err)
|
|
|
}
|
|
|
dataSource := fmt.Sprintf("%s:%s@tcp(%s:%s)/%s?loc=Asia%%2FShanghai",
|
|
|
beego.AppConfig.String("mysql_user"),
|
...
|
...
|
|