Commit 2b568273 authored by 陈志良's avatar 陈志良

Merge branch '1001_forum_share' into 'SANDBOX'

1001 forum share

分享带来用户

See merge request !3
parents b4999fb1 a609bb31
......@@ -77,25 +77,25 @@ router.post('/user/identifyUser',function(req,res,next){
});
//微信分享带来用户
router.get('/user/from/share', function(req, res, next) {
var userId = req.session.mobileForumUser.userId;
// var userId = req.session.mobileForumUser.userId;
var mid = req.query.mid,
action = req.query.action,
ent_code = req.query.ent_code;
forumLimitOperationService.checkLimitOperationProhibitionAddIntegral(userId, function(err, flag){
if(err){
console.error(err);
res.json(returnCode.PROHIBITION_OF_SPEECH);
}else{
if(flag){
res.json(returnCode.PROHIBITION_OF_SPEECH);
}else{
// forumLimitOperationService.checkLimitOperationProhibitionAddIntegral(userId, function(err, flag){
// if(err){
// console.error(err);
// res.json(returnCode.PROHIBITION_OF_SPEECH);
// }else{
// if(flag){
// res.json(returnCode.PROHIBITION_OF_SPEECH);
// }else{
httpService.sendRequest(ent_code,mid,action);
res.status(200).end();
}
}
});
// }
// }
// });
});
//检查用户权限 旧版
......
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