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
99db01d9
Commit
99db01d9
authored
Sep 02, 2015
by
strong
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'merge_behavior_limitaion' into SANDBOX
parents
4c0b83be
15cb220f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
4 deletions
+0
-4
forumThread.js
app/controllers/mobile/forumThread.js
+0
-4
No files found.
app/controllers/mobile/forumThread.js
View file @
99db01d9
...
...
@@ -159,7 +159,6 @@ router.get('/thread/searchComment', function(req, res, next) {
//新增论坛文章
router
.
post
(
'/thread/create'
,
function
(
req
,
res
,
next
)
{
console
.
log
(
'来发帖了'
);
var
userId
=
req
.
session
.
mobileForumUser
.
userId
;
forumLimitOperationService
.
checkLimitOperationProhibitionOfSpeech
(
userId
,
function
(
err
,
isProhibition
){
if
(
err
){
...
...
@@ -167,7 +166,6 @@ router.post('/thread/create', function(req, res, next) {
res
.
json
(
returnCode
.
PROHIBITION_OF_SPEECH
);
}
else
{
if
(
isProhibition
){
console
.
log
(
'禁言了'
);
res
.
json
(
returnCode
.
PROHIBITION_OF_SPEECH
);
}
else
{
var
integral
=
req
.
session
.
openUser
.
integral
||
0
;
...
...
@@ -183,7 +181,6 @@ router.post('/thread/create', function(req, res, next) {
console
.
error
(
err
);
res
.
json
(
returnCode
.
BUSY
);
}
else
{
console
.
log
(
'now is creating thread...'
);
forumLimitOperationService
.
checkLimitOperationProhibitionAddIntegral
(
userId
,
function
(
err
,
flag
){
if
(
err
){
console
.
error
(
err
);
...
...
@@ -203,7 +200,6 @@ router.post('/thread/create', function(req, res, next) {
}
});
}
else
{
console
.
log
(
'没有操作权限'
);
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