diff --git a/business/auth2/authprovider/defauther.go b/business/auth2/authprovider/defauther.go index 39d9cf4e4..9957c9fe7 100644 --- a/business/auth2/authprovider/defauther.go +++ b/business/auth2/authprovider/defauther.go @@ -75,6 +75,9 @@ func (a *DefAuther) UnionFindAuthBind(curAuthType, curAuthTypeID string, unionAu if authDetail != nil { authBindEx.DetailData = string(utils.MustMarshal(authDetail)) } + globals.SugarLogger.Debug("检查一下数据样式===================", authBindEx) + globals.SugarLogger.Debug("检查一下数据样式===================", authDetail) + globals.SugarLogger.Debug("检查一下数据样式===================", authBindEx.DetailData) if authBind.TypeID == "" { authBind.TypeID = curAuthTypeID dao.UpdateEntity(db, authBind, "TypeID") diff --git a/business/model/dao/dao_auth2.go b/business/model/dao/dao_auth2.go index 5eda1df1b..ecf9d9263 100644 --- a/business/model/dao/dao_auth2.go +++ b/business/model/dao/dao_auth2.go @@ -48,7 +48,7 @@ func GetUserBindAuthInfo(db *DaoDB, userID string, bindType int, typeList []stri sql += " AND t1.type IN (" + GenQuestionMarks(len(typeList)) + ")" sqlParams = append(sqlParams, typeList) } - if authID != "" && authID2 != "" { + if authID != "" || authID2 != "" { sql += "AND (t1.auth_id = ? OR t1.auth_id2 = ?)" sqlParams = append(sqlParams, authID, authID2) }