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
9ac63213
Commit
9ac63213
authored
Dec 16, 2015
by
杨翌文
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
11
parent
7c541849
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
17 deletions
+10
-17
forumThread.js
app/controllers/mobile/forumThread.js
+10
-17
No files found.
app/controllers/mobile/forumThread.js
View file @
9ac63213
...
@@ -519,20 +519,16 @@ router.get('/thread/:tid/get', function(req, res, next) {
...
@@ -519,20 +519,16 @@ router.get('/thread/:tid/get', function(req, res, next) {
var
tid
=
req
.
params
.
tid
||
null
;
var
tid
=
req
.
params
.
tid
||
null
;
var
ent_code
=
req
.
session
.
user
.
ent_code
;
var
ent_code
=
req
.
session
.
user
.
ent_code
;
if
(
tid
)
{
if
(
tid
)
{
async
.
waterfall
([
async
.
waterfall
([
function
(
callback
)
{
function
(
callback
)
{
forumThreadService
.
updateThreadPvCount
(
tid
,
function
(
err
,
doc
)
{
forumThreadService
.
getThreadById
(
tid
,
function
(
err
,
thread
)
{
//文章类型 1、文章 2、话题 3、照片墙
if
(
err
)
{
if
(
err
)
{
callback
(
err
,
null
);
callback
(
err
,
null
);
}
else
{
}
else
{
callback
(
null
,
null
);
callback
(
null
,
thread
);
}
}
});
},
function
(
data
,
callback
)
{
forumThreadService
.
getThreadById
(
tid
,
function
(
err
,
thread
)
{
//文章类型 1、文章 2、话题 3、照片墙
var
info_id
=
thread
.
info
.
_id
,
var
info_id
=
thread
.
info
.
_id
,
pid
=
thread
.
pid
,
pid
=
thread
.
pid
,
source
=
req
.
session
.
mobileForumUser
.
source
;
source
=
req
.
session
.
mobileForumUser
.
source
;
...
@@ -545,13 +541,10 @@ router.get('/thread/:tid/get', function(req, res, next) {
...
@@ -545,13 +541,10 @@ router.get('/thread/:tid/get', function(req, res, next) {
}
else
if
(
thread
.
type
==
3
&&
thread
.
level
==
1
)
{
}
else
if
(
thread
.
type
==
3
&&
thread
.
level
==
1
)
{
httpService
.
createLog
(
req
,
source
,
info_id
,
3
,
3
,
tid
);
httpService
.
createLog
(
req
,
source
,
info_id
,
3
,
3
,
tid
);
}
}
});
forumThreadService
.
updateThreadPvCount
(
tid
,
function
(
err
,
doc
)
{
if
(
err
)
{
if
(
err
)
{
callback
(
err
,
null
);
console
.
error
(
err
);
}
else
{
callback
(
null
,
thread
);
}
}
});
});
},
},
...
...
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