File tree 3 files changed +4
-3
lines changed
SCNetworkKit/Classes/ResponseParser
3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -16,8 +16,8 @@ EXTERNAL SOURCES:
16
16
17
17
SPEC CHECKSUMS:
18
18
SCJSONUtil: c4ab28a8d976ddf57f4b9f27a8f795f1166c9593
19
- SCNetworkKit: e65a122988f65fe77fdebe8bb3b84a1247eda58b
19
+ SCNetworkKit: 38cd4075c43f71030dab6ce69c2d0ccd349d155d
20
20
21
21
PODFILE CHECKSUM: 9120efb6f105af6d89aad920d156c216adb37e9f
22
22
23
- COCOAPODS: 1.12 .1
23
+ COCOAPODS: 1.16 .1
Original file line number Diff line number Diff line change @@ -389,6 +389,7 @@ NSURLSession 管理的网络请求结束后,会在 SCNetworkRequest 里处理
389
389
- 1.0.24: 支持通过 NSURLRequest 初始化请求对象
390
390
- 1.0.25: 修复参数字典为空时会在请求后面拼接?或者&的问题
391
391
- 1.0.26: 支持下载限速功能
392
+ - 1.0.27: JSON解析checkKeyPath支持多级路径
392
393
393
394
## 完
394
395
Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ - (id)parser:(NSData *)data error:(NSError *__autoreleasing *)error
145
145
// 验证下服务器返回数据
146
146
if (self.checkKeyPath && self.okValue ) {
147
147
if ([json isKindOfClass: [NSDictionary class ]]) {
148
- id v = [json valueForKeyPath :self .checkKeyPath];
148
+ id v = [self findSubJSON: json keyPath :self .checkKeyPath];
149
149
BOOL isValidate = [[v description ] isEqualToString: self .okValue];
150
150
// 验证不通过
151
151
if (!isValidate){
You can’t perform that action at this time.
0 commit comments