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 9b1283d

Browse files
bugfix
1 parent dac08ba commit 9b1283d

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

‎Coding_iOS/Controllers/TopicAnswerDetailViewController.m‎

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -127,21 +127,15 @@ - (void)messageInputView:(UIMessageInputView *)inputView heightToBottomChenged:(
127127
}
128128

129129
#pragma mark Comment To Topic
130-
- (void)sendCommentMessage:(id)obj
131-
{
130+
- (void)sendCommentMessage:(id)obj{
132131
__weak typeof(self) weakSelf = self;
133-
NSNumber *answerId = nil;
134132
if (_toComment) {
135133
_curTopic.nextCommentStr = [NSString stringWithFormat:@"@%@ %@", _toComment.owner.name, obj];
136-
answerId = _toComment.parent_id;
137-
if ([answerId isEqual:_curTopic.id]) {
138-
answerId = _toComment.id;
139-
}
140134
}else{
141135
_curTopic.nextCommentStr = obj;
142136
}
143137
[NSObject showHUDQueryStr:@"请稍等..."];
144-
[[Coding_NetAPIManager sharedManager] request_DoComment_WithProjectTpoic:_curTopic andAnswerId:answerId andBlock:^(id data, NSError *error) {
138+
[[Coding_NetAPIManager sharedManager] request_DoComment_WithProjectTpoic:_curTopic andAnswerId:_curAnswer.id andBlock:^(id data, NSError *error) {
145139
[NSObject hideHUDQuery];
146140
if (data) {
147141
[NSObject showHudTipStr:@"发表成功"];

0 commit comments

Comments
(0)

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