Commit 99ecb0af authored by strong's avatar strong

Merge branch 'remould_0308_forum' into SANDBOX

parents 7e9cedc7 6125c659
......@@ -892,7 +892,10 @@ router.post('/thread/:tid/comment/add', function(req, res, next) {
loadUserLevel.loadLevelFromAPI(req.session.user.ent_code,rs.data.from.uid,function(err,expValue){
if(!err){
rs.data=rs.data.toObject();
rs.data.from.exp=expValue[rs.data.from.uid];
if(!expValue)
rs.data.from.exp=0;
else
rs.data.from.exp=expValue[rs.data.from.uid];
}
res.json(_.assign(rs, 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