Commit 53abfb9c authored by 陈家荣's avatar 陈家荣

22

parent 3b72a460
......@@ -106,17 +106,24 @@ router.get('/user/from/share', function(req, res, next) {
//检查用户权限 旧版
router.post('/user/checkLimitAction', function(req, res, next) {
// var entity=req.body;
// var userId = entity.mid;
var userId = '55af5114658a348c14578987';
var entity=req.body;
var userId = entity.mid;
if(userId){
var array = [];
var configs = [{
code:'forum_prohibition_of_speech'
},{
code:'forum_not_add_integral'
}];
forumLimitOperationService.getLimitOperationByUserId(userId,function(err,forumLimitOperation){
if (err) {
console.error(err);
var returnObject = {
errcode:'-1',
errmsg:err,
configs:configs,
data:array
}
res.json(returnObject);
......@@ -147,12 +154,14 @@ router.post('/user/checkLimitAction', function(req, res, next) {
}
var returnObject = {
errcode:'success',
configs:configs,
data:array
}
res.json(returnObject);
}else{
var returnObject = {
errcode:'success',
configs:configs,
data:[]
}
res.json(returnObject);
......
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