From b6902484ae03c851c212b9fcb5485adbfc3339b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Thu, 30 Jun 2022 12:42:19 +0800 Subject: [PATCH] 1 --- controllers/auth2.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controllers/auth2.go b/controllers/auth2.go index 7ed76bda3..e0593cf24 100644 --- a/controllers/auth2.go +++ b/controllers/auth2.go @@ -319,8 +319,8 @@ func (c *Auth2Controller) AddAuthBind() { c.callAddAuthBind(func(params *tAuth2AddAuthBindParams) (retVal interface{}, errCode string, err error) { authInfo, err := params.Ctx.GetV2AuthInfo() if err == nil { - newAuthInfo, err2 := auth2.GetTokenInfo(params.AuthToken) - if err = err2; err == nil { + newAuthInfo, err := auth2.GetTokenInfo(params.AuthToken) + if err == nil { err = auth2.AddAuthBind(authInfo, newAuthInfo) } }