From 3d21ffaf117dc6b78cbfb4b18110899ac9851462 Mon Sep 17 00:00:00 2001 From: gazebo Date: Mon, 2 Sep 2019 14:04:27 +0800 Subject: [PATCH] =?UTF-8?q?-=20=E7=A6=81=E7=94=A8auth1.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxstore/cms/authz.go | 2 +- globals/globals.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/business/jxstore/cms/authz.go b/business/jxstore/cms/authz.go index 2c0a422b2..7798e533a 100644 --- a/business/jxstore/cms/authz.go +++ b/business/jxstore/cms/authz.go @@ -16,7 +16,7 @@ import ( func TransferLegacyWeixins(mobile string) (err error) { globals.SugarLogger.Debugf("TransferLegacyWeixins mobile:%s", mobile) - if !globals.EnableWXAuth2 { + if !globals.EnableWXAuth2 || globals.DisableWXAuth1 { return nil } remark4Transfer := "transfer" diff --git a/globals/globals.go b/globals/globals.go index 80e17da46..b29228398 100644 --- a/globals/globals.go +++ b/globals/globals.go @@ -89,7 +89,7 @@ func Init() { StoreName = beego.AppConfig.DefaultString("storeName", "京西菜市") EnableWXAuth2 = true // beego.BConfig.RunMode == "beta" - DisableWXAuth1 = false + DisableWXAuth1 = true } func IsCallbackAlwaysReturnSuccess() bool {