Commit 5c3eb63a authored by 陈家荣's avatar 陈家荣

改变查询评论的条件

parent b26da8e1
...@@ -713,11 +713,17 @@ router.get('/thread/:tid/comment/list', function(req, res, next) { ...@@ -713,11 +713,17 @@ router.get('/thread/:tid/comment/list', function(req, res, next) {
var pageNo = req.query.pageNo || 1; var pageNo = req.query.pageNo || 1;
var pageSize = req.query.pageSize || 10; var pageSize = req.query.pageSize || 10;
// var conditions = {
// ent_code: req.session.user.ent_code,
// thread: tid,
// level: '1',
// status:1
// };
var conditions = { var conditions = {
ent_code: req.session.user.ent_code, ent_code: req.session.user.ent_code,
thread: tid, thread: tid,
level: '1', level: '1'
status:1
}; };
if (tid) { if (tid) {
......
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