UnionFindAuthBind在TypeID为空的情况下更新

This commit is contained in:
gazebo
2020-02-14 10:06:22 +08:00
committed by 苏尹岚
parent 871151201e
commit a1792ba2d4

View File

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