From 71c79f62d40292ac270f23589798b6d8178fac60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Fri, 9 Apr 2021 10:32:51 +0800 Subject: [PATCH] aa --- business/auth2/authprovider/weixin/weixin.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/business/auth2/authprovider/weixin/weixin.go b/business/auth2/authprovider/weixin/weixin.go index fd7df5196..10947f044 100644 --- a/business/auth2/authprovider/weixin/weixin.go +++ b/business/auth2/authprovider/weixin/weixin.go @@ -59,9 +59,10 @@ func init() { func (a *Auther) VerifySecret(id, secret string) (authBindEx *auth2.AuthBindEx, err error) { globals.SugarLogger.Debugf("weixin VerifySecret id:%s secret:%s", id, secret) var openID, accessToken string + _, jsCode := SplitJsCode(secret) if a.authType != AuthTypeWXNative { state := id - code := secret + code := jsCode if state == "" { token, err2 := a.getAPI().SNSRetrieveToken(code) if err = err2; err == nil {