Commit 99db01d9 authored by strong's avatar strong

Merge branch 'merge_behavior_limitaion' into SANDBOX

parents 4c0b83be 15cb220f
...@@ -159,7 +159,6 @@ router.get('/thread/searchComment', function(req, res, next) { ...@@ -159,7 +159,6 @@ 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){
...@@ -167,7 +166,6 @@ router.post('/thread/create', function(req, res, next) { ...@@ -167,7 +166,6 @@ 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;
...@@ -183,7 +181,6 @@ router.post('/thread/create', function(req, res, next) { ...@@ -183,7 +181,6 @@ router.post('/thread/create', function(req, res, next) {
console.error(err); console.error(err);
res.json(returnCode.BUSY); res.json(returnCode.BUSY);
} else { } else {
console.log('now is creating thread...');
forumLimitOperationService.checkLimitOperationProhibitionAddIntegral(userId, function(err, flag){ forumLimitOperationService.checkLimitOperationProhibitionAddIntegral(userId, function(err, flag){
if(err){ if(err){
console.error(err); console.error(err);
...@@ -203,7 +200,6 @@ router.post('/thread/create', function(req, res, next) { ...@@ -203,7 +200,6 @@ 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