思路:需要考虑到字典嵌套字典情况,简单的递归查找就可以实现了,如果有其他更简单的方法欢迎留言讨论~
#pragma mark -
/// 数据转化
/// @param data 源object
+ (NSDictionary *)handleWithData:(NSDictionary *)data {
if (![data isKindOfClass:[NSDictionary class]]) {
return nil;
}
NSMutableDictionary *newData = [NSMutableDictionary dictionaryWithDictionary:data];
__block BOOL hasConverData = NO;
for (NSDictionary *obj in [XQMTestConfi