This commit is contained in:
苏尹岚
2021-01-20 14:21:17 +08:00
parent c9f9c435d5
commit cb8a31a1da

View File

@@ -173,6 +173,7 @@ func UpdateUserRole(ctx *jxcontext.Context, userIDs []string, roleIDs []int) (er
nowRoleIDMap[nowRoleID] = 1
}
fmt.Println("nowRoleIDMap", nowRoleIDMap)
fmt.Println("roleIDMap", roleIDMap)
for _, roleID := range roleIDMap {
if nowRoleIDMap[roleID] == 0 {
addUserRoleMap[userID] = append(addUserRoleMap[userID], roleID)