diff --git a/business/auth2/authprovider/defauther.go b/business/auth2/authprovider/defauther.go index 08e731180..db2801b72 100644 --- a/business/auth2/authprovider/defauther.go +++ b/business/auth2/authprovider/defauther.go @@ -103,6 +103,7 @@ func (a *DefAuther) UnionFindAuthBind(curAuthType, curAuthTypeID string, unionAu } } if err == nil && authBindEx == nil { //如果没有报错,且没有找到一个认证方式,创建无用户(UserID为空)的认证方式 + globals.SugarLogger.Debug("没有找到一个认证方式") authBindEx = &auth2.AuthBindEx{ AuthBind: model.AuthBind{ Type: curAuthType, @@ -111,6 +112,8 @@ func (a *DefAuther) UnionFindAuthBind(curAuthType, curAuthTypeID string, unionAu AuthID2: unionID, }, } + globals.SugarLogger.Debug("输出一下authBindEx", authBindEx) + globals.SugarLogger.Debug("===================再输出一下authBind", authBind) if authDetail != nil { authBindEx.DetailData = string(utils.MustMarshal(authDetail)) } diff --git a/business/auth2/authprovider/dingding/qrcode.go b/business/auth2/authprovider/dingding/qrcode.go index 8e84d4a35..7d78ac6b1 100644 --- a/business/auth2/authprovider/dingding/qrcode.go +++ b/business/auth2/authprovider/dingding/qrcode.go @@ -30,6 +30,7 @@ func (a *QRCodeAuther) VerifySecret(dummy, code string) (authBindEx *auth2.AuthB if authBindEx, err = a.UnionFindAuthBind(AuthTypeQRCode, api.DingDingQRCodeAPI.GetAppID(), []string{AuthTypeStaff, AuthTypeQRCode}, userQRInfo.OpenID, userQRInfo.UnionID, userQRInfo); err == nil { authBindEx.UserHint = &auth2.UserBasic{ Name: userQRInfo.Nickname, + //UserID: userQRInfo., } } } diff --git a/controllers/auth2.go b/controllers/auth2.go index e0593cf24..f9c355468 100644 --- a/controllers/auth2.go +++ b/controllers/auth2.go @@ -256,7 +256,7 @@ func (c *Auth2Controller) WeixinMPOAuth2() { // @Param state query string false "微信回调的登录状态" // @Success 200 {object} controllers.CallResult // @Failure 200 {object} controllers.CallResult -// @router /DingDingOAuth2 [get] +// @router pay [get] func (c *Auth2Controller) DingDingOAuth2() { var ( redirectURL string