- auth1与auth2以为是兼容
This commit is contained in:
@@ -15,7 +15,7 @@ func Init() {
|
||||
orm.RegisterModel(new(legacymodel.BlackClient))
|
||||
orm.RegisterModel(new(legacymodel.JxBadComments))
|
||||
orm.RegisterModel(new(legacymodel.StoreBill))
|
||||
if !globals.EnableWXAuth2 {
|
||||
if !globals.DisableWXAuth1 {
|
||||
orm.RegisterModel(new(legacymodel.WeiXins))
|
||||
}
|
||||
orm.RegisterModel(new(model.GoodsOrder))
|
||||
|
||||
@@ -44,7 +44,8 @@ var (
|
||||
|
||||
StoreName string
|
||||
|
||||
EnableWXAuth2 bool
|
||||
EnableWXAuth2 bool
|
||||
DisableWXAuth1 bool
|
||||
)
|
||||
|
||||
func init() {
|
||||
@@ -88,6 +89,7 @@ func Init() {
|
||||
StoreName = beego.AppConfig.DefaultString("storeName", "京西菜市")
|
||||
|
||||
EnableWXAuth2 = beego.BConfig.RunMode == "beta"
|
||||
DisableWXAuth1 = false
|
||||
}
|
||||
|
||||
func IsCallbackAlwaysReturnSuccess() bool {
|
||||
|
||||
Reference in New Issue
Block a user