Commit 3f7c8125 authored by 陈家荣's avatar 陈家荣

查询帖子的状态全部改为1

parent daa1a662
...@@ -72,7 +72,7 @@ function create(req, callback) { ...@@ -72,7 +72,7 @@ function create(req, callback) {
level: '2', level: '2',
pid: entity.pid, pid: entity.pid,
from: entity.from, from: entity.from,
status: {$ne:3} status: 1
}, function(err, doc) { }, function(err, doc) {
if (doc) { if (doc) {
var update = { var update = {
...@@ -80,7 +80,8 @@ function create(req, callback) { ...@@ -80,7 +80,8 @@ function create(req, callback) {
images: entity.images, images: entity.images,
content: entity.content, content: entity.content,
tag: entity.tag, tag: entity.tag,
address: entity.address address: entity.address,
title: entity.title
} }
}; };
forumThreadService.updateThreadById(doc._id, update, function(err, updatedDoc) { forumThreadService.updateThreadById(doc._id, update, function(err, updatedDoc) {
...@@ -639,7 +640,7 @@ router.get('/thread/photo/:pid/get', function(req, res, next) { ...@@ -639,7 +640,7 @@ router.get('/thread/photo/:pid/get', function(req, res, next) {
level: '2', level: '2',
pid: pid, pid: pid,
from: userId, from: userId,
status: {$ne:3} status: 1
}, function(err, thread) { }, function(err, thread) {
if (err) { if (err) {
console.error(err); console.error(err);
...@@ -1629,7 +1630,7 @@ router.post('/thread/:tid/comment/:cid/cancelRaise', function(req, res, next) { ...@@ -1629,7 +1630,7 @@ router.post('/thread/:tid/comment/:cid/cancelRaise', function(req, res, next) {
//评论点赞和取消点赞 //评论点赞和取消点赞
router.post('/thread/:tid/comment/:cid/praiseOrCancelPraise', function(req, res, next) { router.post('/thread/:tid/comment/:cid/praiseOrCancelPraise', function(req, res, next) {
var userId = req.session.mobileForumUser.userId; var userId = user.getMobileUser(req);
var tid = req.params.tid || null; var tid = req.params.tid || null;
var cid = req.params.cid || null; var cid = req.params.cid || null;
var mid = req.session.openUser.mid; var mid = req.session.openUser.mid;
...@@ -1750,9 +1751,7 @@ router.get('/thread/:tid/latestPhotos', function(req, res, next) { ...@@ -1750,9 +1751,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,
status: { status: 1,
$ne: 3
},
images: { images: {
$exists: true, $exists: true,
$not: { $not: {
...@@ -1812,9 +1811,7 @@ router.get('/thread/:tid/hotPhotos', function(req, res, next) { ...@@ -1812,9 +1811,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,
status: { status: 1,
$ne: 3
},
images: { images: {
$exists: true, $exists: true,
$not: { $not: {
......
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