Commit 152051cb authored by 陈家荣's avatar 陈家荣

add console

parent be6abd19
...@@ -159,6 +159,7 @@ router.get('/thread/searchComment', function(req, res, next) { ...@@ -159,6 +159,7 @@ router.get('/thread/searchComment', function(req, res, next) {
//新增论坛文章 //新增论坛文章
router.post('/thread/create', function(req, res, next) { router.post('/thread/create', function(req, res, next) {
console.log('来发帖了');
var userId = req.session.mobileForumUser.userId; var userId = req.session.mobileForumUser.userId;
forumLimitOperationService.checkLimitOperationProhibitionOfSpeech(userId, function(err, isProhibition){ forumLimitOperationService.checkLimitOperationProhibitionOfSpeech(userId, function(err, isProhibition){
if(err){ if(err){
...@@ -166,6 +167,7 @@ router.post('/thread/create', function(req, res, next) { ...@@ -166,6 +167,7 @@ router.post('/thread/create', function(req, res, next) {
res.json(returnCode.PROHIBITION_OF_SPEECH); res.json(returnCode.PROHIBITION_OF_SPEECH);
}else{ }else{
if(isProhibition){ if(isProhibition){
console.log('禁言了');
res.json(returnCode.PROHIBITION_OF_SPEECH); res.json(returnCode.PROHIBITION_OF_SPEECH);
}else{ }else{
var integral = req.session.openUser.integral || 0; var integral = req.session.openUser.integral || 0;
...@@ -201,6 +203,7 @@ router.post('/thread/create', function(req, res, next) { ...@@ -201,6 +203,7 @@ router.post('/thread/create', function(req, res, next) {
} }
}); });
} else { } else {
console.log('没有操作权限');
res.json(returnCode.ACTION_NOT_PERMISSION); res.json(returnCode.ACTION_NOT_PERMISSION);
} }
} }
......
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