Commit 82e59b80 authored by 陈家荣's avatar 陈家荣

update

parent d544ce7d
......@@ -563,6 +563,8 @@ router.get('/thread/:tid/get', function(req, res, next) {
console.error(err);
res.json(returnCode.BUSY);
} else {
//更新推荐列表redis
redisThreadList.updateRedisEsenceThreads(req.session.user.ent_code, "", '_thread_essence', function() {});
var threads = [];
threads.push(thread);
util.loadLevel(req.session.user.ent_code, threads, function() {
......@@ -908,6 +910,8 @@ router.post('/thread/:tid/comment/add', function(req, res, next) {
if (err) {
res.json(returnCode.BUSY);
} else {
//更新推荐列表redis
redisThreadList.updateRedisEsenceThreads(req.session.user.ent_code, "", '_thread_essence', function() {});
var rs = {};
rs.data = c;
res.json(_.assign(rs, returnCode.SUCCESS));
......@@ -921,11 +925,6 @@ router.post('/thread/:tid/comment/add', function(req, res, next) {
} else {
res.json(returnCode.WRONG_PARAM);
}
// } else {
// res.json(returnCode.ACTION_NOT_PERMISSION);
// }
// }
// });
} else {
res.json(returnCode.WRONG_PARAM);
}
......@@ -1777,7 +1776,7 @@ router.post('/thread/:tid/disable', function(req, res, next) {
});
//获取推荐文章 //旧的,无用 2016/1/28日后请删除
//获取推荐文章 //旧的,无用 2016/1/29日后请删除
router.get('/thread/getThreadWithEssence_old', function(req, res, next) {
var pageNo = req.query.pageNo || 1;
var pageSize = req.query.pageSize || 10;
......
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