Commit f82c4e3b authored by chrysan's avatar chrysan

版主删除帖子功能 变成 屏蔽

parent dbcae00c
......@@ -208,6 +208,7 @@ router.get('/moderators/delthread/:tid', function(req, res, next) {
return res.json(returnCode.ACTION_NOT_PERMISSION);
}
//删除帖子
/*
forumThreadService.logicDeleteThreadById(tid, function(err) {
if (err) {
console.error(err);
......@@ -218,6 +219,17 @@ router.get('/moderators/delthread/:tid', function(req, res, next) {
forumAboutMEService.updateThreadStatus(tid,3);
}
});
*/
forumThreadService.updateThreadById(tid, { status: 0}, function(err, thread) {
if (err) {
console.error(err);
res.json(returnCode.BUSY);
} else {
res.json(returnCode.SUCCESS);
moderatorOperateLog(result.forumUser,t,0);
forumAboutMEService.updateThreadStatus(tid,0);
}
});
});
});
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment