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
82e59b80
Commit
82e59b80
authored
Jan 28, 2016
by
陈家荣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
d544ce7d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
forumThread.js
app/controllers/mobile/forumThread.js
+5
-6
No files found.
app/controllers/mobile/forumThread.js
View file @
82e59b80
...
@@ -563,6 +563,8 @@ router.get('/thread/:tid/get', function(req, res, next) {
...
@@ -563,6 +563,8 @@ router.get('/thread/:tid/get', function(req, res, next) {
console
.
error
(
err
);
console
.
error
(
err
);
res
.
json
(
returnCode
.
BUSY
);
res
.
json
(
returnCode
.
BUSY
);
}
else
{
}
else
{
//更新推荐列表redis
redisThreadList
.
updateRedisEsenceThreads
(
req
.
session
.
user
.
ent_code
,
""
,
'_thread_essence'
,
function
()
{});
var
threads
=
[];
var
threads
=
[];
threads
.
push
(
thread
);
threads
.
push
(
thread
);
util
.
loadLevel
(
req
.
session
.
user
.
ent_code
,
threads
,
function
()
{
util
.
loadLevel
(
req
.
session
.
user
.
ent_code
,
threads
,
function
()
{
...
@@ -908,6 +910,8 @@ router.post('/thread/:tid/comment/add', function(req, res, next) {
...
@@ -908,6 +910,8 @@ router.post('/thread/:tid/comment/add', function(req, res, next) {
if
(
err
)
{
if
(
err
)
{
res
.
json
(
returnCode
.
BUSY
);
res
.
json
(
returnCode
.
BUSY
);
}
else
{
}
else
{
//更新推荐列表redis
redisThreadList
.
updateRedisEsenceThreads
(
req
.
session
.
user
.
ent_code
,
""
,
'_thread_essence'
,
function
()
{});
var
rs
=
{};
var
rs
=
{};
rs
.
data
=
c
;
rs
.
data
=
c
;
res
.
json
(
_
.
assign
(
rs
,
returnCode
.
SUCCESS
));
res
.
json
(
_
.
assign
(
rs
,
returnCode
.
SUCCESS
));
...
@@ -921,11 +925,6 @@ router.post('/thread/:tid/comment/add', function(req, res, next) {
...
@@ -921,11 +925,6 @@ router.post('/thread/:tid/comment/add', function(req, res, next) {
}
else
{
}
else
{
res
.
json
(
returnCode
.
WRONG_PARAM
);
res
.
json
(
returnCode
.
WRONG_PARAM
);
}
}
// } else {
// res.json(returnCode.ACTION_NOT_PERMISSION);
// }
// }
// });
}
else
{
}
else
{
res
.
json
(
returnCode
.
WRONG_PARAM
);
res
.
json
(
returnCode
.
WRONG_PARAM
);
}
}
...
@@ -1777,7 +1776,7 @@ router.post('/thread/:tid/disable', function(req, res, next) {
...
@@ -1777,7 +1776,7 @@ router.post('/thread/:tid/disable', function(req, res, next) {
});
});
//获取推荐文章 //旧的,无用 2016/1/2
8
日后请删除
//获取推荐文章 //旧的,无用 2016/1/2
9
日后请删除
router
.
get
(
'/thread/getThreadWithEssence_old'
,
function
(
req
,
res
,
next
)
{
router
.
get
(
'/thread/getThreadWithEssence_old'
,
function
(
req
,
res
,
next
)
{
var
pageNo
=
req
.
query
.
pageNo
||
1
;
var
pageNo
=
req
.
query
.
pageNo
||
1
;
var
pageSize
=
req
.
query
.
pageSize
||
10
;
var
pageSize
=
req
.
query
.
pageSize
||
10
;
...
...
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