Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pisns-forum-api
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
scrmGroup
pisns-forum-api
Commits
3f7c8125
Commit
3f7c8125
authored
Mar 14, 2016
by
陈家荣
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
查询帖子的状态全部改为1
parent
daa1a662
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
10 deletions
+7
-10
forumThread.js
app/controllers/mobile/forumThread.js
+7
-10
No files found.
app/controllers/mobile/forumThread.js
View file @
3f7c8125
...
...
@@ -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
:
{
...
...
strong
@strong
mentioned in commit
d15a8e42
·
Mar 14, 2016
mentioned in commit
d15a8e42
mentioned in commit d15a8e42f27e8afcfe59eb5eb4e9b7cc582907da
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment