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
d242c6a0
Commit
d242c6a0
authored
Apr 24, 2015
by
陈志良
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
11
parent
8bbea139
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
forumInfo.js
app/controllers/mobile/forumInfo.js
+2
-1
forumShare.js
app/controllers/mobile/forumShare.js
+1
-1
forumTag.js
app/controllers/mobile/forumTag.js
+3
-1
No files found.
app/controllers/mobile/forumInfo.js
View file @
d242c6a0
...
...
@@ -137,7 +137,8 @@ router.get('/info/:fid/threads', function(req, res, next) {
var
sort
=
'-top -topTime -created'
var
conditions
=
{
ent_code
:
req
.
session
.
user
.
ent_code
,
level
:
1
level
:
1
,
status
:
1
};
if
(
fid
)
{
conditions
.
info
=
fid
;
...
...
app/controllers/mobile/forumShare.js
View file @
d242c6a0
...
...
@@ -77,7 +77,7 @@ router.get('/:ent_code/share.js', function(req, res, next) {
type
=
req
.
query
.
type
,
id
=
req
.
query
.
id
,
uId
=
req
.
session
.
mobileForumUser
.
userId
,
ent_code
=
req
.
session
.
user
.
ent_code
,
ent_code
=
req
.
params
.
ent_code
,
mid
=
0
,
link
=
'/app/forum/'
+
ent_code
+
'/index?pageUrl='
,
share_log
=
{};
...
...
app/controllers/mobile/forumTag.js
View file @
d242c6a0
...
...
@@ -60,7 +60,9 @@ router.get('/tag/:tid/threads', function(req, res, next) {
var
tid
=
req
.
params
.
tid
;
var
sort
=
'-tag_top -tag_topTime -created'
;
var
conditions
=
{
ent_code
:
req
.
session
.
user
.
ent_code
ent_code
:
req
.
session
.
user
.
ent_code
,
status
:
1
,
level
:
1
};
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