Commit 489f0b29036b41294d97438e64572db22cc157b6

Authored by “张旭”
2 parents 4ce19373 b4539eab
metaCode/Classes/Config/CNLiveConfigUserInfo.swift
... ... @@ -257,7 +257,7 @@ class StandSortManager: NSObject {
257 257 let standModel = item as! StandListModel
258 258 let old_index = have_auths.index(of: standModel)
259 259 let new_index = have_id_auths.index(of: standModel.id)
260   - if old_index != new_index {
  260 + if old_index != new_index && have_auths.count == have_id_auths.count {
261 261 swap(&have_auths[new_index], &have_auths[old_index])
262 262 }
263 263 }
... ...