UnionFindAuthBind在TypeID为空的情况下更新
This commit is contained in:
@@ -75,6 +75,10 @@ func (a *DefAuther) UnionFindAuthBind(curAuthType, curAuthTypeID string, unionAu
|
|||||||
if authDetail != nil {
|
if authDetail != nil {
|
||||||
authBindEx.DetailData = string(utils.MustMarshal(authDetail))
|
authBindEx.DetailData = string(utils.MustMarshal(authDetail))
|
||||||
}
|
}
|
||||||
|
if authBind.TypeID == "" {
|
||||||
|
authBind.TypeID = curAuthTypeID
|
||||||
|
dao.UpdateEntity(db, authBind, "TypeID")
|
||||||
|
}
|
||||||
} else if dao.IsNoRowsError(err) { // 直接找不到,尝试unionID
|
} else if dao.IsNoRowsError(err) { // 直接找不到,尝试unionID
|
||||||
if unionID != "" { // 且有unionID
|
if unionID != "" { // 且有unionID
|
||||||
var authBindList []*model.AuthBind
|
var authBindList []*model.AuthBind
|
||||||
|
|||||||
Reference in New Issue
Block a user