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
c02326f9
Commit
c02326f9
authored
Jan 27, 2016
by
刘文胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
公告分享
parent
7596abfc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
forumShare.js
app/controllers/mobile/forumShare.js
+11
-0
No files found.
app/controllers/mobile/forumShare.js
View file @
c02326f9
...
...
@@ -16,6 +16,7 @@ var forumThreadService = require('../../service/forumThreadService'),
// forumLimitActionRefService = require('../../service/forumLimitActionRefService'),
forumLimitOperationService
=
require
(
'../../service/forumLimitOperationService'
);
var
Notice
=
mongoose
.
model
(
'ForumNotice'
);
var
redis
=
global
.
redis
;
module
.
exports
=
function
(
app
)
{
...
...
@@ -377,6 +378,16 @@ router.get('/sharev2.js', function(req, res, next) {
if
(
!
type
||
!
id
){
console
.
error
(
'请求参数错误'
)
res
.
json
(
_
.
assign
({
result
:
false
},
returnCode
.
WRONG_PARAM
));
}
else
if
(
type
===
'notice'
){
Notice
.
findOne
({
_id
:
id
},
function
(
err
,
result
){
if
(
err
)
{
console
.
error
(
err
);
res
.
json
(
_
.
assign
({
result
:
false
},
returnCode
.
BUSY
));
}
link
=
link
+
'noticeDetail&infoId='
+
(
result
.
plate
||
''
)
+
'&ent_code='
+
ent_code
+
'&tId='
+
result
.
_id
+
'&uId='
+
uId
;
title
=
result
.
title
,
desc
=
result
.
content
,
imgUrl
=
result
.
icon
;
getWXV2
(
res
,
title
,
desc
,
link
,
imgUrl
,
mid
,
ent_code
,
id
,
type
,
null
);
});
}
else
if
(
type
===
'Info'
)
{
//分享记录对象
share_log
.
type
=
2
;
...
...
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