- auth for weixin.
This commit is contained in:
@@ -2,6 +2,8 @@ package globals
|
||||
|
||||
import (
|
||||
"git.rosy.net.cn/baseapi"
|
||||
"git.rosy.net.cn/jx-callback/business/jxutils/cache"
|
||||
"git.rosy.net.cn/jx-callback/business/jxutils/cache/redis"
|
||||
"github.com/astaxie/beego"
|
||||
"github.com/astaxie/beego/logs"
|
||||
_ "github.com/go-sql-driver/mysql" // import your used driver
|
||||
@@ -23,6 +25,8 @@ var (
|
||||
JxorderskuTableName string
|
||||
ElemeorderTableName string
|
||||
JdorderTableName string
|
||||
|
||||
Cacher cache.ICacher
|
||||
)
|
||||
|
||||
func init() {
|
||||
@@ -47,4 +51,6 @@ func Init() {
|
||||
JxorderskuTableName = "jxordersku"
|
||||
ElemeorderTableName = "elemeorder"
|
||||
JdorderTableName = "jdorder"
|
||||
|
||||
Cacher = redis.New(beego.AppConfig.DefaultString("redisHost", "localhost"), beego.AppConfig.DefaultInt("redisPort", 0), beego.AppConfig.DefaultString("redisPassword", ""))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user