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
fb16e522
Commit
fb16e522
authored
Mar 03, 2016
by
陈家荣
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2
parent
f829bd3b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
forumThread.js
app/controllers/mobile/forumThread.js
+6
-6
No files found.
app/controllers/mobile/forumThread.js
View file @
fb16e522
...
...
@@ -1774,7 +1774,7 @@ router.get('/thread/getThreadWithNotPopulateComment', function(req, res, next) {
var
pageNo
=
req
.
query
.
pageNo
||
1
;
var
pageSize
=
req
.
query
.
pageSize
||
10
;
var
infoId
=
req
.
query
.
infoId
||
null
;
var
tag
id
=
req
.
query
.
tagi
d
||
null
;
var
tag
Id
=
req
.
query
.
tagI
d
||
null
;
var
sort
=
'-_id'
;
var
ent_code
=
req
.
session
.
user
.
ent_code
;
var
today
=
new
Date
();
...
...
@@ -1794,8 +1794,8 @@ router.get('/thread/getThreadWithNotPopulateComment', function(req, res, next) {
if
(
infoId
){
conditions
.
info
=
infoId
;
}
if
(
tag
i
d
){
conditions
.
tag
=
{
$in
:[
tag
i
d
]};
if
(
tag
I
d
){
conditions
.
tag
=
{
$in
:[
tag
I
d
]};
}
queryThread
(
conditions
,
pageNo
,
pageSize
,
sort
,
function
(
err
,
results
){
if
(
err
){
...
...
@@ -1948,7 +1948,7 @@ router.get('/thread/getThreadWithNotPopulateComment/hot', function(req, res, nex
var
pageNo
=
req
.
query
.
pageNo
||
1
;
var
pageSize
=
req
.
query
.
pageSize
||
10
;
var
infoId
=
req
.
query
.
infoId
||
null
;
var
tag
id
=
req
.
query
.
tagi
d
||
null
;
var
tag
Id
=
req
.
query
.
tagI
d
||
null
;
var
sort
=
'-top -topTime -_id'
;
var
ent_code
=
req
.
session
.
user
.
ent_code
;
var
today
=
new
Date
();
...
...
@@ -1968,9 +1968,9 @@ router.get('/thread/getThreadWithNotPopulateComment/hot', function(req, res, nex
if
(
infoId
){
conditions
.
info
=
infoId
;
}
if
(
tag
i
d
){
if
(
tag
I
d
){
sort
=
"-tag_top -tag_topTime -_id"
;
conditions
.
tag
=
{
$in
:[
tag
i
d
]};
conditions
.
tag
=
{
$in
:[
tag
I
d
]};
}
queryThread
(
conditions
,
pageNo
,
pageSize
,
sort
,
function
(
err
,
results
){
if
(
err
){
...
...
strong
@strong
mentioned in commit
1069fd51
·
Mar 03, 2016
mentioned in commit
1069fd51
mentioned in commit 1069fd51fb672a30f7f07c97c58f1fbe2a9fdaa8
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