Commit e05f0ffa authored by 刘文胜's avatar 刘文胜

举报接口修改

parent 467e5e14
......@@ -14,7 +14,7 @@ router.post('/complaints', function(req, res, next) {
var ent_code=req.session.user.ent_code;
ForumComplaintService.addComplaint(req.body,ent_code,function(err,result){
if(err){
res.json(returnCode.BUSY);
res.json(returnCode.UNCHECK_ERROR(err));
}else{
res.json(_.assign(result, returnCode.SUCCESS));
}
......
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