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
721ae3d6
Commit
721ae3d6
authored
Mar 17, 2016
by
刘文胜
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改活动贴查询条件
parent
c484da61
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
41 additions
and
41 deletions
+41
-41
forumInfo.js
app/controllers/mobile/forumInfo.js
+21
-21
forumTag.js
app/controllers/mobile/forumTag.js
+3
-3
forumThread.js
app/controllers/mobile/forumThread.js
+12
-12
redisThreadList.js
app/utils/redisThreadList.js
+5
-5
No files found.
app/controllers/mobile/forumInfo.js
View file @
721ae3d6
...
...
@@ -90,9 +90,9 @@ router.get('/info/:fid/get', function(req, res, next) {
level
:
1
,
status
:
1
,
$or
:
[{
isEvent
:
0
},
{
isEvent
:
null
isEvent
:
{
$ne
:
1
}
},
{
isEvent
:
1
,
'event.eventStartTime'
:
{
$lte
:
today
}
...
...
@@ -183,9 +183,9 @@ router.get('/info/:fid/threads', function(req, res, next) {
level
:
1
,
status
:
1
,
$or
:
[{
isEvent
:
0
},
{
isEvent
:
null
isEvent
:
{
$ne
:
1
}
},
{
isEvent
:
1
,
'event.eventStartTime'
:
{
$lte
:
today
}
...
...
@@ -266,9 +266,9 @@ router.get('/info/:fid/hotThreads', function(req, res, next) {
$ne
:
3
},
$or
:
[{
isEvent
:
0
},
{
isEvent
:
null
isEvent
:
{
$ne
:
1
}
},
{
isEvent
:
1
,
'event.eventStartTime'
:
{
$lte
:
today
}
...
...
@@ -331,9 +331,9 @@ router.get('/info/:fid/photoThreads', function(req, res, next) {
$ne
:
3
},
$or
:
[{
isEvent
:
0
},
{
isEvent
:
null
isEvent
:
{
$ne
:
1
}
},
{
isEvent
:
1
,
'event.eventStartTime'
:
{
$lte
:
today
}
...
...
@@ -628,9 +628,9 @@ router.get('/info/:fid/serachThreads', function(req, res, next) {
status
:
1
,
info
:
fid
,
$or
:
[{
isEvent
:
0
},
{
isEvent
:
null
isEvent
:
{
$ne
:
1
}
},
{
isEvent
:
1
,
'event.eventStartTime'
:
{
$lte
:
today
}
...
...
@@ -832,9 +832,9 @@ router.get('/info/list/allWithThreadCount', function(req, res, next) {
level
:
1
,
status
:
1
,
$or
:
[{
isEvent
:
0
},
{
isEvent
:
null
isEvent
:
{
$ne
:
1
}
},
{
isEvent
:
1
,
'event.eventStartTime'
:
{
$lte
:
today
}
...
...
@@ -883,9 +883,9 @@ router.get('/info/serachThreads', function(req, res, next) {
ent_code
:
ent_code
,
status
:
1
,
$or
:
[{
isEvent
:
0
},
{
isEvent
:
null
isEvent
:
{
$ne
:
1
}
},
{
isEvent
:
1
,
'event.eventStartTime'
:
{
$lte
:
today
}
...
...
app/controllers/mobile/forumTag.js
View file @
721ae3d6
...
...
@@ -79,9 +79,9 @@ router.get('/tag/:tid/threads', function(req, res, next) {
status
:
1
,
level
:
1
,
$or
:
[{
isEvent
:
0
},
{
isEvent
:
null
isEvent
:
{
$ne
:
1
}
},
{
isEvent
:
1
,
'event.eventStartTime'
:
{
$lte
:
today
}
...
...
app/controllers/mobile/forumThread.js
View file @
721ae3d6
...
...
@@ -417,9 +417,9 @@ router.get('/thread/searchThread', function(req, res, next) {
status
:
status
,
from
:
from
,
$or
:
[{
isEvent
:
0
},
{
isEvent
:
null
isEvent
:
{
$ne
:
1
}
},
{
isEvent
:
1
,
'event.eventStartTime'
:
{
$lte
:
today
},
...
...
@@ -1932,9 +1932,9 @@ router.get('/thread/getThreadWithNotPopulateComment', function(req, res, next) {
level
:
1
,
status
:
1
,
$or
:
[{
isEvent
:
0
},
{
isEvent
:
null
isEvent
:
{
$ne
:
1
}
},
{
isEvent
:
1
,
'event.eventStartTime'
:
{
$lte
:
today
}
...
...
@@ -1987,9 +1987,9 @@ router.get('/thread/getThreadWithEssence', function(req, res, next) {
status
:
1
,
new_recommend
:
1
,
$or
:
[{
isEvent
:
0
},
{
isEvent
:
null
isEvent
:
{
$ne
:
1
}
},
{
isEvent
:
1
,
'event.eventStartTime'
:
{
$lte
:
today
}
...
...
@@ -2103,9 +2103,9 @@ router.get('/thread/getThreadWithNotPopulateComment/hot', function(req, res, nex
level
:
1
,
status
:
1
,
$or
:
[{
isEvent
:
0
},
{
isEvent
:
null
isEvent
:
{
$ne
:
1
}
},
{
isEvent
:
1
,
'event.eventStartTime'
:
{
$lte
:
today
}
...
...
app/utils/redisThreadList.js
View file @
721ae3d6
...
...
@@ -53,11 +53,11 @@ function getEsenceThreads(ent_code, salt,callback){
level
:
1
,
status
:
1
,
new_recommend
:
1
,
$or
:
[{
isEvent
:
0
},
{
isEvent
:
null
},
{
$or
:
[{
isEvent
:
{
$ne
:
1
}
},
{
isEvent
:
1
,
'event.eventStartTime'
:
{
$lte
:
today
}
}]
...
...
strong
@strong
mentioned in commit
4e899005
·
Mar 17, 2016
mentioned in commit
4e899005
mentioned in commit 4e8990056943dc76db0882d814a8fe0a764b730b
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