Commit 87b7cf4b authored by 陈家荣's avatar 陈家荣

update

parent 77387afb
...@@ -335,13 +335,13 @@ exports.getThreadById = function(tid, callback) { ...@@ -335,13 +335,13 @@ exports.getThreadById = function(tid, callback) {
if(doc.type == 2){ if(doc.type == 2){
conditions = { conditions = {
pid: tid, pid: tid,
type: 2, level : 2,
status:{$ne: 3} status:{$ne: 3}
}; };
}else if(doc.type == 3){ }else if(doc.type == 3){
conditions = { conditions = {
pid: tid, pid: tid,
type: 3, level : 2,
status:{$ne: 3} status:{$ne: 3}
}; };
}else{ }else{
...@@ -375,9 +375,8 @@ exports.getThreadById = function(tid, callback) { ...@@ -375,9 +375,8 @@ exports.getThreadById = function(tid, callback) {
} }
var conditions = { var conditions = {
pid: tid, pid: tid,
type: 3, level : 2,
status:1, status:{$ne: 3}
images: {$exists: true, $not: {$size: 0}}
}; };
var key = 'pisns-forum-thread:' + tid + ':subThreads'; var key = 'pisns-forum-thread:' + tid + ':subThreads';
......
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