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
152051cb
Commit
152051cb
authored
Sep 01, 2015
by
陈家荣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add console
parent
be6abd19
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
forumThread.js
app/controllers/mobile/forumThread.js
+3
-0
No files found.
app/controllers/mobile/forumThread.js
View file @
152051cb
...
@@ -159,6 +159,7 @@ router.get('/thread/searchComment', function(req, res, next) {
...
@@ -159,6 +159,7 @@ router.get('/thread/searchComment', function(req, res, next) {
//新增论坛文章
//新增论坛文章
router
.
post
(
'/thread/create'
,
function
(
req
,
res
,
next
)
{
router
.
post
(
'/thread/create'
,
function
(
req
,
res
,
next
)
{
console
.
log
(
'来发帖了'
);
var
userId
=
req
.
session
.
mobileForumUser
.
userId
;
var
userId
=
req
.
session
.
mobileForumUser
.
userId
;
forumLimitOperationService
.
checkLimitOperationProhibitionOfSpeech
(
userId
,
function
(
err
,
isProhibition
){
forumLimitOperationService
.
checkLimitOperationProhibitionOfSpeech
(
userId
,
function
(
err
,
isProhibition
){
if
(
err
){
if
(
err
){
...
@@ -166,6 +167,7 @@ router.post('/thread/create', function(req, res, next) {
...
@@ -166,6 +167,7 @@ router.post('/thread/create', function(req, res, next) {
res
.
json
(
returnCode
.
PROHIBITION_OF_SPEECH
);
res
.
json
(
returnCode
.
PROHIBITION_OF_SPEECH
);
}
else
{
}
else
{
if
(
isProhibition
){
if
(
isProhibition
){
console
.
log
(
'禁言了'
);
res
.
json
(
returnCode
.
PROHIBITION_OF_SPEECH
);
res
.
json
(
returnCode
.
PROHIBITION_OF_SPEECH
);
}
else
{
}
else
{
var
integral
=
req
.
session
.
openUser
.
integral
||
0
;
var
integral
=
req
.
session
.
openUser
.
integral
||
0
;
...
@@ -201,6 +203,7 @@ router.post('/thread/create', function(req, res, next) {
...
@@ -201,6 +203,7 @@ router.post('/thread/create', function(req, res, next) {
}
}
});
});
}
else
{
}
else
{
console
.
log
(
'没有操作权限'
);
res
.
json
(
returnCode
.
ACTION_NOT_PERMISSION
);
res
.
json
(
returnCode
.
ACTION_NOT_PERMISSION
);
}
}
}
}
...
...
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