- 禁用auth1.

This commit is contained in:
gazebo
2019-09-02 14:04:27 +08:00
parent de6c5de6df
commit 3d21ffaf11
2 changed files with 2 additions and 2 deletions

View File

@@ -16,7 +16,7 @@ import (
func TransferLegacyWeixins(mobile string) (err error) { func TransferLegacyWeixins(mobile string) (err error) {
globals.SugarLogger.Debugf("TransferLegacyWeixins mobile:%s", mobile) globals.SugarLogger.Debugf("TransferLegacyWeixins mobile:%s", mobile)
if !globals.EnableWXAuth2 { if !globals.EnableWXAuth2 || globals.DisableWXAuth1 {
return nil return nil
} }
remark4Transfer := "transfer" remark4Transfer := "transfer"

View File

@@ -89,7 +89,7 @@ func Init() {
StoreName = beego.AppConfig.DefaultString("storeName", "京西菜市") StoreName = beego.AppConfig.DefaultString("storeName", "京西菜市")
EnableWXAuth2 = true // beego.BConfig.RunMode == "beta" EnableWXAuth2 = true // beego.BConfig.RunMode == "beta"
DisableWXAuth1 = false DisableWXAuth1 = true
} }
func IsCallbackAlwaysReturnSuccess() bool { func IsCallbackAlwaysReturnSuccess() bool {