Authored by zhangxiaoru

editorial

... ... @@ -196,7 +196,7 @@ let cancelPraise = (req, res, next) => {
let addComment = (req, res, next) => {
let uid = req.user.uid;
let id = req.body.id;
let content = req.body.content;
let content = req.body.comment;
editorialModel.addComment(id, uid, content).then((result) => {
res.json(result);
... ...
... ... @@ -19,7 +19,7 @@ $('.editorial-index-page').on('click', '.like-icon', function() {
var $this = $(this),
// prising = false,
msgId = $this.pardents('.msg-content').data('id'),
msgId = $this.parents('.msg-content').data('id'),
url;
// if (prising === msgId) {
... ...