diff --git a/business/auth2/authprovider/defauther.go b/business/auth2/authprovider/defauther.go index 1c6dc8583..ea0ea4620 100644 --- a/business/auth2/authprovider/defauther.go +++ b/business/auth2/authprovider/defauther.go @@ -75,6 +75,10 @@ func (a *DefAuther) UnionFindAuthBind(curAuthType, curAuthTypeID string, unionAu if authDetail != nil { authBindEx.DetailData = string(utils.MustMarshal(authDetail)) } + if authBind.TypeID == "" { + authBind.TypeID = curAuthTypeID + dao.UpdateEntity(db, authBind, "TypeID") + } } else if dao.IsNoRowsError(err) { // 直接找不到,尝试unionID if unionID != "" { // 且有unionID var authBindList []*model.AuthBind