- auth1与auth2以为是兼容

This commit is contained in:
gazebo
2019-08-26 15:16:05 +08:00
parent fcc87c34af
commit 20c63e7f59
11 changed files with 79 additions and 25 deletions

View File

@@ -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))

View File

@@ -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 {