Skip to content

Commit b096a25

Browse files
committed
讨论的 bug
1 parent d4b469c commit b096a25

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Coding_iOS/Controllers/TopicDetailViewController.m

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -415,8 +415,10 @@ - (void)deleteTopic:(ProjectTopic *)curTopic isComment:(BOOL)isC{
415415
}];
416416
}else{
417417
[[Coding_NetAPIManager sharedManager] request_ProjectTopicComment_Delete_WithObj:curTopic projectId:_curTopic.project.id andBlock:^(id data, NSError *error) {
418-
[weakSelf.curTopic.comments.list removeObject:_toComment];
419-
[weakSelf.myTableView reloadData];
418+
if (data) {
419+
[weakSelf.curTopic.comments.list removeObject:_toComment];
420+
[weakSelf.myTableView reloadData];
421+
}
420422
}];
421423
}
422424
}

Coding_iOS/Util/Manager/Coding_NetAPIManager.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1432,7 +1432,7 @@ - (void)request_ProjectTopic_WithObj:(ProjectTopic *)proTopic andBlock:(void (^)
14321432
if (dataMD) {
14331433
resultT.mdTitle = [[dataMD valueForKey:@"data"] valueForKey:@"title"];
14341434
resultT.mdContent = [[dataMD valueForKey:@"data"] valueForKey:@"content"];
1435-
NSString *watchersPath = [NSString stringWithFormat:@"api/project/%@/topic/%@/watchers", proTopic.project_id.stringValue, proTopic.id.stringValue];
1435+
NSString *watchersPath = [NSString stringWithFormat:@"api/project/%@/topic/%@/watchers", resultT.project_id.stringValue, resultT.id.stringValue];
14361436
[[CodingNetAPIClient sharedJsonClient] requestJsonDataWithPath:watchersPath withParams:@{@"pageSize": @1000} withMethodType:Get andBlock:^(id dataW, NSError *errorW) {
14371437
proTopic.isTopicLoading = NO;
14381438
if (dataW) {

0 commit comments

Comments
 (0)