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
4c5d9710
Commit
4c5d9710
authored
Dec 17, 2015
by
strong
Browse files
Options
Browse Files
Download
Plain Diff
Merge commit '
6c5f284d
' into SANDBOX
parents
45f460af
6c5f284d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
13 deletions
+12
-13
forumInfo.js
app/controllers/mobile/forumInfo.js
+12
-13
No files found.
app/controllers/mobile/forumInfo.js
View file @
4c5d9710
...
@@ -100,7 +100,7 @@ router.get('/info/:fid/get', function(req, res, next) {
...
@@ -100,7 +100,7 @@ router.get('/info/:fid/get', function(req, res, next) {
res
.
json
(
returnCode
.
BUSY
);
res
.
json
(
returnCode
.
BUSY
);
}
else
{
}
else
{
var
rs
=
{};
var
rs
=
{};
rs
.
data
=
results
[
0
];
rs
.
data
=
results
[
0
]
.
toObject
()
;
rs
.
data
.
threadCount
=
results
[
1
];
rs
.
data
.
threadCount
=
results
[
1
];
res
.
json
(
_
.
assign
(
rs
,
returnCode
.
SUCCESS
));
res
.
json
(
_
.
assign
(
rs
,
returnCode
.
SUCCESS
));
}
}
...
@@ -167,18 +167,17 @@ router.get('/info/:fid/threads', function(req, res, next) {
...
@@ -167,18 +167,17 @@ router.get('/info/:fid/threads', function(req, res, next) {
if
(
fid
)
{
if
(
fid
)
{
async
.
waterfall
([
async
.
waterfall
([
function
(
callback
)
{
function
(
callback
)
{
callback
(
null
,
null
);
forumUserThreadControlService
.
getUserThreadControlById
(
user
.
getMobileUser
(
req
),
function
(
err
,
doc
)
{
// forumUserThreadControlService.getUserThreadControlById(user.getMobileUser(req), function(err, doc) {
if
(
err
)
{
// if (err) {
callback
(
err
,
null
);
// callback(err, null);
}
else
{
// } else {
if
(
doc
)
{
// if (doc) {
callback
(
null
,
doc
);
// callback(null, doc);
}
else
{
// } else {
callback
(
null
,
null
);
// callback(null, null);
}
// }
}
// }
});
// });
}
}
],
function
(
err
,
result
)
{
],
function
(
err
,
result
)
{
if
(
err
)
{
if
(
err
)
{
...
...
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