Commit 454540ef authored by 邓军's avatar 邓军

1

parent db3a8266
......@@ -210,6 +210,7 @@ router.get('/threads/list', function(req, res, next) {
var infoId = req.query.infoId;
var tagId = req.query.tagId;
var pid = req.query.pid;
var content = req.query.content;
var conditions = {
ent_code: req.session.user.ent_code,
level: 1
......@@ -228,6 +229,13 @@ router.get('/threads/list', function(req, res, next) {
conditions.level = 2;
}
if(content){
conditions.content = {
$regex: content,
$options: 'i'
}
}
forumThreadService.getAllThreadByFid(conditions, pageNo, pageSize, null, function(err, results) {
if (err) {
console.error(err);
......
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