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
41eff4d8
Commit
41eff4d8
authored
Mar 31, 2016
by
strong
Browse files
Options
Browse Files
Download
Plain Diff
Merge commit '
60c8e79c
' into SANDBOX
parents
342ab175
60c8e79c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
11 deletions
+10
-11
forumThread.js
app/controllers/admin/forumThread.js
+10
-11
No files found.
app/controllers/admin/forumThread.js
View file @
41eff4d8
...
...
@@ -407,10 +407,7 @@ router.get('/threads/list', function(req, res, next) {
var
sortBy
=
{
top
:
-
1
,
// top_order_idx:-1,
topTime
:
-
1
,
tag_top
:
-
1
,
tag_topTime
:
-
1
,
quality
:
-
1
,
created
:
-
1
};
...
...
@@ -428,6 +425,12 @@ router.get('/threads/list', function(req, res, next) {
conditions
.
tag
=
{
$in
:
[
tagId
]
};
sortBy
=
{
top
:
-
1
,
topTime
:
-
1
,
quality
:
-
1
,
created
:
-
1
}
}
if
(
pid
)
{
conditions
.
pid
=
pid
;
...
...
@@ -455,20 +458,16 @@ router.get('/threads/list', function(req, res, next) {
if
(
recommend_threads
){
//推荐贴
conditions
.
new_recommend
=
1
;
sortBy
=
{
new_recommend
:
-
1
,
new_recommend_order_idx
:
-
1
,
new_recommend_time
:
-
1
,
top
:
-
1
,
// top_order_idx:-1,
topTime
:
-
1
,
tag_top
:
-
1
,
tag_topTime
:
-
1
,
quality
:
-
1
,
created
:
-
1
};
}
if
(
top_threads
){
//置顶帖
conditions
.
top
=
1
;
sortBy
=
{
top_order_idx
:
-
1
,
created
:
-
1
};
}
if
(
eventStatus
)
{
...
...
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