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

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

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