mirror of
https://github.com/wahyd4/Yep.git
synced 2026-08-09 12:56:15 +10:00
handle not paging of headBlockedUsers
This commit is contained in:
@@ -735,6 +735,15 @@ func blockedUsersByMe(failureHandler failureHandler: ((Reason, String?) -> Void)
|
||||
completion(parse(blockedUsers))
|
||||
}
|
||||
}
|
||||
|
||||
} else {
|
||||
// 没有分页信息才会到此处
|
||||
println("headBlockedUsers not paging info.")
|
||||
if let blockedUsers = result["blocked_users"] as? [JSONDictionary] {
|
||||
completion(parse(blockedUsers))
|
||||
} else {
|
||||
completion([])
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user