dd扫码
This commit is contained in:
@@ -103,6 +103,7 @@ func (a *DefAuther) UnionFindAuthBind(curAuthType, curAuthTypeID string, unionAu
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if err == nil && authBindEx == nil { //如果没有报错,且没有找到一个认证方式,创建无用户(UserID为空)的认证方式
|
if err == nil && authBindEx == nil { //如果没有报错,且没有找到一个认证方式,创建无用户(UserID为空)的认证方式
|
||||||
|
globals.SugarLogger.Debug("没有找到一个认证方式")
|
||||||
authBindEx = &auth2.AuthBindEx{
|
authBindEx = &auth2.AuthBindEx{
|
||||||
AuthBind: model.AuthBind{
|
AuthBind: model.AuthBind{
|
||||||
Type: curAuthType,
|
Type: curAuthType,
|
||||||
@@ -111,6 +112,8 @@ func (a *DefAuther) UnionFindAuthBind(curAuthType, curAuthTypeID string, unionAu
|
|||||||
AuthID2: unionID,
|
AuthID2: unionID,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
globals.SugarLogger.Debug("输出一下authBindEx", authBindEx)
|
||||||
|
globals.SugarLogger.Debug("===================再输出一下authBind", authBind)
|
||||||
if authDetail != nil {
|
if authDetail != nil {
|
||||||
authBindEx.DetailData = string(utils.MustMarshal(authDetail))
|
authBindEx.DetailData = string(utils.MustMarshal(authDetail))
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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 {
|
if authBindEx, err = a.UnionFindAuthBind(AuthTypeQRCode, api.DingDingQRCodeAPI.GetAppID(), []string{AuthTypeStaff, AuthTypeQRCode}, userQRInfo.OpenID, userQRInfo.UnionID, userQRInfo); err == nil {
|
||||||
authBindEx.UserHint = &auth2.UserBasic{
|
authBindEx.UserHint = &auth2.UserBasic{
|
||||||
Name: userQRInfo.Nickname,
|
Name: userQRInfo.Nickname,
|
||||||
|
//UserID: userQRInfo.,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -256,7 +256,7 @@ func (c *Auth2Controller) WeixinMPOAuth2() {
|
|||||||
// @Param state query string false "微信回调的登录状态"
|
// @Param state query string false "微信回调的登录状态"
|
||||||
// @Success 200 {object} controllers.CallResult
|
// @Success 200 {object} controllers.CallResult
|
||||||
// @Failure 200 {object} controllers.CallResult
|
// @Failure 200 {object} controllers.CallResult
|
||||||
// @router /DingDingOAuth2 [get]
|
// @router pay [get]
|
||||||
func (c *Auth2Controller) DingDingOAuth2() {
|
func (c *Auth2Controller) DingDingOAuth2() {
|
||||||
var (
|
var (
|
||||||
redirectURL string
|
redirectURL string
|
||||||
|
|||||||
Reference in New Issue
Block a user