Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 4214671

Browse files
数据太多,不能正常显示时,给出相应提示
1 parent 22f664e commit 4214671

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

‎Coding_iOS/Util/Manager/CodingNetAPIClient.m‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,14 @@ - (void)requestJsonDataWithPath:(NSString *)aPath
7878
block(responseObject, error);
7979
}else{
8080
if ([responseObject isKindOfClass:[NSDictionary class]]) {
81+
//判断数据是否符合预期,给出提示
82+
if ([responseObject[@"data"] isKindOfClass:[NSDictionary class]]) {
83+
if (responseObject[@"data"][@"too_many_files"]) {
84+
if (autoShowError) {
85+
[self showHudTipStr:@"文件太多,不能正常显示"];
86+
}
87+
}
88+
}
8189
[NSObject saveResponseData:responseObject toPath:localPath];
8290
}
8391
block(responseObject, nil);

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /