File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -127,21 +127,15 @@ - (void)messageInputView:(UIMessageInputView *)inputView heightToBottomChenged:(
127
127
}
128
128
129
129
#pragma mark Comment To Topic
130
- - (void )sendCommentMessage : (id )obj
131
- {
130
+ - (void )sendCommentMessage : (id )obj {
132
131
__weak typeof (self) weakSelf = self;
133
- NSNumber *answerId = nil ;
134
132
if (_toComment) {
135
133
_curTopic.nextCommentStr = [NSString stringWithFormat: @" @%@ %@ " , _toComment.owner.name, obj];
136
- answerId = _toComment.parent_id ;
137
- if ([answerId isEqual: _curTopic.id ]) {
138
- answerId = _toComment.id ;
139
- }
140
134
}else {
141
135
_curTopic.nextCommentStr = obj;
142
136
}
143
137
[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) {
145
139
[NSObject hideHUDQuery ];
146
140
if (data) {
147
141
[NSObject showHudTipStr: @" 发表成功" ];
You can’t perform that action at this time.
0 commit comments