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
542437a6
Commit
542437a6
authored
Jan 28, 2016
by
陈家荣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
82e59b80
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
forumHonorTitle.js
app/controllers/admin/forumHonorTitle.js
+7
-1
No files found.
app/controllers/admin/forumHonorTitle.js
View file @
542437a6
...
@@ -8,7 +8,7 @@ var mongoose = require('mongoose');
...
@@ -8,7 +8,7 @@ var mongoose = require('mongoose');
var
ForumHonorTitle
=
mongoose
.
model
(
'ForumHonorTitle'
);
var
ForumHonorTitle
=
mongoose
.
model
(
'ForumHonorTitle'
);
var
forumHonorTitleService
=
require
(
'../../service/forumHonorTitleService'
);
var
forumHonorTitleService
=
require
(
'../../service/forumHonorTitleService'
);
var
redisThreadList
=
require
(
'../../utils/redisThreadList'
);
module
.
exports
=
function
(
app
)
{
module
.
exports
=
function
(
app
)
{
app
.
use
(
'/admin/forum'
,
router
);
app
.
use
(
'/admin/forum'
,
router
);
};
};
...
@@ -56,6 +56,8 @@ router.post('/honorTitle/:id/update', function(req, res, next) {
...
@@ -56,6 +56,8 @@ router.post('/honorTitle/:id/update', 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
()
{});
res
.
json
(
returnCode
.
SUCCESS
);
res
.
json
(
returnCode
.
SUCCESS
);
}
}
});
});
...
@@ -91,6 +93,8 @@ router.put('/honorTitle/orderIDX/:id/:order', function(req, res, next) {
...
@@ -91,6 +93,8 @@ router.put('/honorTitle/orderIDX/:id/:order', function(req, res, next) {
if
(
err
||
!
result
){
if
(
err
||
!
result
){
return
res
.
json
(
returnCode
.
BUSY
);
return
res
.
json
(
returnCode
.
BUSY
);
}
}
//更新推荐列表redis
redisThreadList
.
updateRedisEsenceThreads
(
req
.
session
.
user
.
ent_code
,
""
,
'_thread_essence'
,
function
()
{});
return
res
.
json
(
_
.
assign
({
data
:
true
},
returnCode
.
SUCCESS
));
return
res
.
json
(
_
.
assign
({
data
:
true
},
returnCode
.
SUCCESS
));
});
});
});
});
...
@@ -139,6 +143,8 @@ router.put('/honorTitle/moveUP/:id/:order', function(req, res, next) {
...
@@ -139,6 +143,8 @@ router.put('/honorTitle/moveUP/:id/:order', function(req, res, next) {
if
(
err
||
!
result
){
if
(
err
||
!
result
){
return
res
.
json
(
returnCode
.
BUSY
);
return
res
.
json
(
returnCode
.
BUSY
);
}
}
//更新推荐列表redis
redisThreadList
.
updateRedisEsenceThreads
(
req
.
session
.
user
.
ent_code
,
""
,
'_thread_essence'
,
function
()
{});
return
res
.
json
(
_
.
assign
({
data
:
true
},
returnCode
.
SUCCESS
));
return
res
.
json
(
_
.
assign
({
data
:
true
},
returnCode
.
SUCCESS
));
});
});
});
});
...
...
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