This commit is contained in:
苏尹岚
2021-01-20 14:23:41 +08:00
parent cb8a31a1da
commit 15068e28f9

View File

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