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