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
045d3c41
Commit
045d3c41
authored
Dec 17, 2015
by
陈家荣
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix社区文章加精未赠送积分
parent
e8847ebd
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
446 deletions
+17
-446
forumThread.js
app/controllers/admin/forumThread.js
+17
-11
forumThread.js
app/controllers/mobile/forumThread.js
+0
-435
No files found.
app/controllers/admin/forumThread.js
View file @
045d3c41
...
@@ -326,7 +326,8 @@ router.post('/thread/:tid/:fid/recommend', function(req, res, next) {
...
@@ -326,7 +326,8 @@ router.post('/thread/:tid/:fid/recommend', function(req, res, next) {
var
tid
=
req
.
params
.
tid
,
var
tid
=
req
.
params
.
tid
,
fid
=
req
.
params
.
fid
,
fid
=
req
.
params
.
fid
,
ent_code
=
req
.
session
.
user
.
ent_code
,
ent_code
=
req
.
session
.
user
.
ent_code
,
mid
=
req
.
body
.
mid
;
//板块ID
thread_from_id
=
req
.
body
.
thread_from_id
;
mid
=
req
.
body
.
mid
;
if
(
tid
&&
fid
)
{
if
(
tid
&&
fid
)
{
forumThreadService
.
updateRecommendByThreadId
(
tid
,
function
(
err
,
thread
)
{
forumThreadService
.
updateRecommendByThreadId
(
tid
,
function
(
err
,
thread
)
{
if
(
err
)
{
if
(
err
)
{
...
@@ -334,19 +335,24 @@ router.post('/thread/:tid/:fid/recommend', function(req, res, next) {
...
@@ -334,19 +335,24 @@ router.post('/thread/:tid/:fid/recommend', function(req, res, next) {
res
.
json
(
returnCode
.
BUSY
);
res
.
json
(
returnCode
.
BUSY
);
}
else
{
}
else
{
if
(
mid
)
{
if
(
mid
)
{
forumLimitOperationService
.
checkLimitOperationProhibitionAddIntegral
(
tid
,
function
(
err
,
flag
)
{
if
(
thread_from_id
){
if
(
err
)
{
forumLimitOperationService
.
checkLimitOperationProhibitionAddIntegral
(
thread_from_id
,
function
(
err
,
flag
)
{
console
.
error
(
err
);
if
(
err
)
{
res
.
json
(
returnCode
.
PROHIBITION_OF_SPEECH
);
console
.
error
(
err
);
}
else
{
if
(
flag
)
{
res
.
json
(
returnCode
.
PROHIBITION_OF_SPEECH
);
res
.
json
(
returnCode
.
PROHIBITION_OF_SPEECH
);
}
else
{
}
else
{
httpService
.
sendRequest
(
ent_code
,
mid
,
'thread_recomment'
);
if
(
flag
)
{
res
.
json
(
returnCode
.
SUCCESS
);
res
.
json
(
returnCode
.
PROHIBITION_OF_SPEECH
);
}
else
{
httpService
.
sendRequest
(
ent_code
,
mid
,
'thread_recomment'
);
res
.
json
(
returnCode
.
SUCCESS
);
}
}
}
}
});
});
}
else
{
httpService
.
sendRequest
(
ent_code
,
mid
,
'thread_recomment'
);
res
.
json
(
returnCode
.
SUCCESS
);
}
}
else
{
}
else
{
res
.
json
(
returnCode
.
SUCCESS
);
res
.
json
(
returnCode
.
SUCCESS
);
}
}
...
...
app/controllers/mobile/forumThread.js
View file @
045d3c41
This diff is collapsed.
Click to expand it.
strong
@strong
mentioned in commit
2fa28246
·
Dec 17, 2015
mentioned in commit
2fa28246
mentioned in commit 2fa28246b164b5b7d311af69fade113e49aecf93
Toggle commit list
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