Commit 15fb7843 authored by 刘文胜's avatar 刘文胜

11111

parent 1e4c5a9c
......@@ -30,7 +30,7 @@ function moderatorOperateLog(forumUser,thread,type){
ent_code:ent_code,
info:thread.info,
userName:thread.from.nickName || thread.from.displayName,
content:thread._id,
content:{id:thread._id,content:thread.content},
behavior:type,
moderatorName:forumUser.nickName || forumUser.displayName
});
......@@ -105,7 +105,7 @@ router.get('/moderators/recommend/:tid', function(req, res, next) {
q2.status=1;
q2.ent_code = entCode;
q2.forumUser=id;
q2.infoIds=t.info;
q2.infoIds={$all:[t.info]};
ForumModeratorApply.findOne(q2).populate('forumUser').exec(function(err,result){
if(err){
return res.json(returnCode.BUSY);
......@@ -151,7 +151,7 @@ router.get('/moderators/unrecommend/:tid', function(req, res, next) {
q2.status=1;
q2.ent_code = entCode;
q2.forumUser=id;
q2.infoIds=t.info;
q2.infoIds={$all:[t.info]};
ForumModeratorApply.findOne(q2).populate('forumUser').exec(function(err,result){
if(err){
return res.json(returnCode.BUSY);
......@@ -196,7 +196,7 @@ router.get('/moderators/delthread/:tid', function(req, res, next) {
q2.status=1;
q2.ent_code = entCode;
q2.forumUser=id;
q2.infoIds=t.info;
q2.infoIds={$all:[t.info]};
ForumModeratorApply.findOne(q2).populate('forumUser').exec(function(err,result){
if(err){
return res.json(returnCode.BUSY);
......
......@@ -18,7 +18,7 @@ var ForumModeratorSchema=new Schema({
require: false
},
content:{
type:Schema.Types.ObjectId,
type:Object,
require:false
},
behavior:{//行为:1.加精 2.取消精华 3.删帖
......
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