- 禁用auth1.
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user