- auth2与auth在小程序登录成功后,如有必要刷新openID
This commit is contained in:
@@ -77,6 +77,7 @@ func (a *DefAuther) UnionFindAuthBind(curAuthType string, unionAuthTypeList []st
|
||||
authBindEx = &auth2.AuthBindEx{
|
||||
AuthBind: *authBind,
|
||||
}
|
||||
a.UnbindAuth(authBind.UserID, curAuthType, model.AdminName)
|
||||
err = a.AddAuthBind(authBindEx, model.AdminName) // 自动绑定
|
||||
} else if dao.IsNoRowsError(err) {
|
||||
err = nil
|
||||
|
||||
Reference in New Issue
Block a user