This commit is contained in:
苏尹岚
2021-03-24 14:33:35 +08:00
parent 625b5a5cbd
commit 5a7e7a0ab7
4 changed files with 10 additions and 7 deletions

View File

@@ -1920,3 +1920,8 @@ func TempJob() (err error) {
task.GetID() task.GetID()
return err return err
} }
func ShareUnionLink(ctx *jxcontext.Context, linkType int) (err error) {
return err
}

View File

@@ -9,10 +9,12 @@ type UnionHandler struct {
} }
var ( var (
UnionHandlerObj UnionHandler UnionInterfaceHandler vendor.UnionInterface
UnionHandlerObj = vendor.UnionInterfaceHandler UnionHandlerObj = &UnionHandler{}
) )
func (s *UnionHandler) ShareUnionLink(ctx *jxcontext.Context, linkType int) (err error) { func (s *UnionHandler) ShareUnionLink(ctx *jxcontext.Context, linkType int) (err error) {
UnionInterfaceHandler = UnionHandlerObj
return err return err
} }

View File

@@ -9,10 +9,6 @@ const (
LinkTypeH5 = 2 //H5 LinkTypeH5 = 2 //H5
) )
var (
UnionInterfaceHandler UnionInterface
)
type UnionInterface interface { type UnionInterface interface {
ShareUnionLink(ctx *jxcontext.Context, linkType int) (err error) ShareUnionLink(ctx *jxcontext.Context, linkType int) (err error)
} }

View File

@@ -10,7 +10,7 @@ import (
func Init() { func Init() {
// set default database // set default database
orm.RegisterDataBase("default", "mysql", beego.AppConfig.String("dbConnectStr"), 30) orm.RegisterDataBase("default", "mysql", beego.AppConfig.String("dbConnectStr"), 30)
orm.RegisterDataBase("c4", "mysql", "root:WebServer@1@tcp(gold1.jxc4.com:3306)/jxd_dev_0?charset=utf8mb4&loc=Local&parseTime=true", 30) // orm.RegisterDataBase("c4", "mysql", "root:WebServer@1@tcp(gold1.jxc4.com:3306)/jxd_dev_0?charset=utf8mb4&loc=Local&parseTime=true", 30)
//用户 //用户
orm.RegisterModel(&model.AuthBind{}, &model.User{}) orm.RegisterModel(&model.AuthBind{}, &model.User{})