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
e1b0bc34
Commit
e1b0bc34
authored
Jan 29, 2016
by
陈家荣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新标签获取列表出现未开始活动帖子
parent
d2c239e6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
forumTag.js
app/controllers/mobile/forumTag.js
+10
-1
No files found.
app/controllers/mobile/forumTag.js
View file @
e1b0bc34
...
...
@@ -65,10 +65,19 @@ router.get('/tag/:tid/threads', function(req, res, next) {
var
tid
=
req
.
params
.
tid
;
var
sort
=
'-tag_top -tag_topTime -created'
;
var
ent_code
=
req
.
session
.
user
.
ent_code
;
var
today
=
new
Date
();
var
conditions
=
{
ent_code
:
ent_code
,
status
:
1
,
level
:
1
level
:
1
,
$or
:
[{
isEvent
:
0
},
{
isEvent
:
null
},
{
isEvent
:
1
,
'event.eventStartTime'
:
{
$lte
:
today
}
}]
};
if
(
tid
){
conditions
.
tag
=
{
$in
:[
tid
]};
...
...
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