Authored by 张文文

回复评论接口参数修改 reviewd by 朱傲哲

... ... @@ -81,9 +81,9 @@ class ContentMessageContainer extends Component {
_addArticleCommentAction(addValue) {
let addType = this.state.dataSource.businessType === 1003 ? 1 : 0;
let destId = addType === 0 ? this.state.dataSource.articleId : 0;
let commentId = this.state.dataSource.commentId;
let columnType = addType === 0 ? 1001 : 0;
let destId = addType === 0 ? this.state.dataSource.articleId : null;
let commentId = addType === 0 ? null : this.state.dataSource.parentCommentId;
let columnType = addType === 0 ? 1001 : null;
this.props.actions.addArticleCommentAction(addValue, destId, commentId, addType, columnType);
}
... ...
... ... @@ -50,17 +50,15 @@ export default class ContentService {
//评论(回复)接口
async addArticleComment(content, destId, uid, commentId, addType, columnType) {
let method = 'app.grass.addArticleComment';
let body = {};
addType === 0 ? body = {content, destId, addType, columnType, uid, method} : body = {content, addType, uid, commentId, method};
return await this.api.get({
url: '',
body: {
content,
destId,
commentId,
addType,
columnType,
uid,
method: 'app.grass.addArticleComment',
}
body: body
})
.then(json => {
return json
... ...