Skip to content

Commit 0781f67

Browse files
committed
修复低级错误
修复低级错误
1 parent 22d610c commit 0781f67

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

MJExtension.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "MJExtension"
3-
s.version = "3.0.6"
3+
s.version = "3.0.7"
44
s.ios.deployment_target = '6.0'
55
s.osx.deployment_target = '10.8'
66
s.summary = "A fast and convenient conversion between JSON and model"

MJExtension/NSObject+MJKeyValue.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,8 +293,8 @@ - (NSMutableDictionary *)mj_keyValuesWithIgnoredKeys:(NSArray *)ignoredKeys
293293

294294
- (NSMutableDictionary *)mj_keyValuesWithKeys:(NSArray *)keys ignoredKeys:(NSArray *)ignoredKeys
295295
{
296-
// 如果自己不是模型类
297-
MJExtensionAssertError(![MJFoundation isClassFromFoundation:[self class]], nil, [self class], @"不是自定义的模型类")
296+
// 如果自己不是模型类, 那就返回自己
297+
MJExtensionAssertError(![MJFoundation isClassFromFoundation:[self class]], (NSMutableDictionary *)self, [self class], @"不是自定义的模型类")
298298

299299
id keyValues = [NSMutableDictionary dictionary];
300300

0 commit comments

Comments
 (0)