fix #459 。加入【精华】版块

This commit is contained in:
alsotang 2014-11-20 22:58:01 +08:00
parent 5c6289b4a7
commit ea801217a0
2 changed files with 7 additions and 2 deletions

View File

@ -107,7 +107,8 @@ var config = {
tabs: [
['share', '分享'],
['ask', '问答'],
['job', '招聘']
['job', '招聘'],
['good', '精华'],
]
};

View File

@ -56,7 +56,11 @@ exports.index = function (req, res, next) {
// 取主题
var query = {};
if (tab && tab !== 'all') {
query.tab = tab;
if (tab === 'good') {
query.good = true;
} else {
query.tab = tab;
}
}
var limit = config.list_topic_count;