Merge branch 'master' into jxstore

This commit is contained in:
gazebo
2018-09-04 22:20:05 +08:00
15 changed files with 429 additions and 1226 deletions

View File

@@ -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", ""))
}