Skip to content

Commit c5ca2c1

Browse files
committed
讨论列表里,现在可以要求不返回 content,速度会更快,包更小
1 parent f50bdeb commit c5ca2c1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Coding_iOS/Models/ProjectTopics.m

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,15 @@ - (NSDictionary *)toParams
4343
@"pageSize" : _pageSize,
4444
@"type" : (_queryType == TopicQueryTypeAll ? @"all" : @"my"),
4545
@"orderBy" : [NSNumber numberWithInteger:_labelType],
46-
@"labelId" : _labelID
46+
@"labelId" : _labelID,
47+
@"no_content": @(true)
4748
};
4849
} else {
4950
dict = @{@"page" : (_willLoadMore? [NSNumber numberWithInteger:_page.intValue+1] : [NSNumber numberWithInteger:1]),
5051
@"pageSize" : _pageSize,
5152
@"type" : (_queryType == TopicQueryTypeAll ? @"all" : @"my"),
52-
@"orderBy" : [NSNumber numberWithInteger:_labelType]
53+
@"orderBy" : [NSNumber numberWithInteger:_labelType],
54+
@"no_content": @(true)
5355
};
5456
}
5557
return dict;

0 commit comments

Comments
 (0)