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
dbcae00c
Commit
dbcae00c
authored
Dec 11, 2015
by
chrysan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
重命名参数
parent
da5b2d3e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
forumThread.js
app/controllers/mobile/forumThread.js
+4
-4
No files found.
app/controllers/mobile/forumThread.js
View file @
dbcae00c
...
...
@@ -1714,7 +1714,7 @@ router.post('/thread/:tid/comment/:cid/disable', function(req, res, next) {
router
.
post
(
'/thread/:tid/comment/:cid/slash'
,
function
(
req
,
res
,
next
)
{
var
tid
=
req
.
params
.
tid
,
entCode
=
req
.
session
.
user
.
ent_code
,
id
=
user
.
getMobileUser
(
req
),
//user._id
user
id
=
user
.
getMobileUser
(
req
),
//user._id
cid
=
req
.
params
.
cid
;
var
q1
=
{};
//拼装查询条件
q1
.
ent_code
=
entCode
;
...
...
@@ -1735,7 +1735,7 @@ router.post('/thread/:tid/comment/:cid/slash', function(req, res, next) {
var
q2
=
{};
//查询当前用户是不是这篇文章的版主
q2
.
status
=
1
;
q2
.
ent_code
=
entCode
;
q2
.
forumUser
=
id
;
q2
.
forumUser
=
user
id
;
q2
.
infoIds
=
{
$all
:[
t
.
info
]};
ForumModeratorApply
.
findOne
(
q2
).
populate
(
'forumUser'
).
exec
(
function
(
err
,
result
){
if
(
err
){
...
...
@@ -1744,9 +1744,9 @@ router.post('/thread/:tid/comment/:cid/slash', function(req, res, next) {
if
(
!
result
){
//不是该版主
return
res
.
json
(
returnCode
.
ACTION_NOT_PERMISSION
);
}
//
获得什么鬼。
//
forumCommentService
.
getCommentById
(
cid
,
function
(
err
,
comment
)
{
if
(
comment
&&
user
_
id
)
{
if
(
comment
&&
userid
)
{
//屏蔽
forumCommentService
.
changeStatus
(
cid
,
0
,
function
(
err
,
update
)
{
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