- auth2与auth在小程序登录成功后,如有必要刷新openID

This commit is contained in:
gazebo
2019-08-13 11:23:36 +08:00
parent d59ca265c4
commit cd84cbdfd2
2 changed files with 5 additions and 0 deletions

View File

@@ -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