Commit dbcae00c authored by chrysan's avatar chrysan

重命名参数

parent da5b2d3e
......@@ -1714,7 +1714,7 @@ router.post('/thread/:tid/comment/:cid/disable', function(req, res, next) {
router.post('/thread/:tid/comment/:cid/slash', function(req, res, next) {
var tid = req.params.tid,
entCode = req.session.user.ent_code,
id = user.getMobileUser(req),//user._id
userid = user.getMobileUser(req),//user._id
cid = req.params.cid;
var q1={};//拼装查询条件
q1.ent_code = entCode;
......@@ -1735,7 +1735,7 @@ router.post('/thread/:tid/comment/:cid/slash', function(req, res, next) {
var q2 = {};//查询当前用户是不是这篇文章的版主
q2.status=1;
q2.ent_code = entCode;
q2.forumUser=id;
q2.forumUser=userid;
q2.infoIds={$all:[t.info]};
ForumModeratorApply.findOne(q2).populate('forumUser').exec(function(err,result){
if(err){
......@@ -1744,9 +1744,9 @@ router.post('/thread/:tid/comment/:cid/slash', function(req, res, next) {
if(!result){//不是该版主
return res.json(returnCode.ACTION_NOT_PERMISSION);
}
//获得什么鬼。
//
forumCommentService.getCommentById(cid, function(err, comment) {
if (comment && user_id) {
if (comment && userid) {
//屏蔽
forumCommentService.changeStatus(cid, 0, function(err, update) {
if (err) {
......
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