This commit is contained in:
richboo111
2023-07-03 17:47:09 +08:00
parent 293beac9ee
commit c26804a4dd
2 changed files with 6 additions and 3 deletions

View File

@@ -2,7 +2,6 @@ package weixin
import (
"errors"
"fmt"
"git.rosy.net.cn/baseapi/utils"
"git.rosy.net.cn/jx-callback/globals"
@@ -73,8 +72,8 @@ func (a *Auther) VerifySecret(id, secret string) (authBindEx *auth2.AuthBindEx,
state := id
code := jsCode
if state == "" {
temp := a.getAPI()
fmt.Printf("secret=%s,appid=%s", temp.GetSecret(), temp.GetAppID())
//temp := a.getAPI()
//fmt.Printf("secret=%s,appid=%s", temp.GetSecret(), temp.GetAppID())
token, err2 := a.getAPI().SNSRetrieveToken(code)
if err = err2; err == nil {
openID = token.OpenID