Commit 0b38a8e6 authored by 陈志良's avatar 陈志良

2

parent ba96366e
...@@ -915,7 +915,7 @@ router.get('/thread/:tid/latestPhotos', function(req, res, next) { ...@@ -915,7 +915,7 @@ router.get('/thread/:tid/latestPhotos', function(req, res, next) {
ent_code: req.session.user.ent_code, ent_code: req.session.user.ent_code,
pid: tid, pid: tid,
type: 3, type: 3,
'images.1':{$exists: true} images: {$exists: true, $not: {$size: 0}}
}; };
if (tid) { if (tid) {
...@@ -969,7 +969,7 @@ router.get('/thread/:tid/hotPhotos', function(req, res, next) { ...@@ -969,7 +969,7 @@ router.get('/thread/:tid/hotPhotos', function(req, res, next) {
ent_code: req.session.user.ent_code, ent_code: req.session.user.ent_code,
pid: tid, pid: tid,
type: 3, type: 3,
'images.1':{$exists: true} images: {$exists: true, $not: {$size: 0}}
}; };
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