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
d2c239e6
Commit
d2c239e6
authored
Jan 28, 2016
by
陈家荣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新公告分享内容
parent
532510de
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
forumShare.js
app/controllers/mobile/forumShare.js
+2
-2
No files found.
app/controllers/mobile/forumShare.js
View file @
d2c239e6
...
@@ -300,7 +300,6 @@ router.get('/sharev2.js', function(req, res, next) {
...
@@ -300,7 +300,6 @@ router.get('/sharev2.js', function(req, res, next) {
mid
=
req
.
session
.
openUser
.
mid
,
mid
=
req
.
session
.
openUser
.
mid
,
link
=
'/app/forum/'
+
ent_code
+
'/v2?pageUrl='
,
link
=
'/app/forum/'
+
ent_code
+
'/v2?pageUrl='
,
share_log
=
{};
share_log
=
{};
// delete req.session.mobileForumUser.share_log; //在接口分享中不再使用这个,因为在其它地方会把req.session.mobileForumUser重新赋值
delete
req
.
session
.
shareLog
;
//新的分享对象
delete
req
.
session
.
shareLog
;
//新的分享对象
...
@@ -385,7 +384,8 @@ router.get('/sharev2.js', function(req, res, next) {
...
@@ -385,7 +384,8 @@ router.get('/sharev2.js', function(req, res, next) {
res
.
json
(
_
.
assign
({
result
:
false
},
returnCode
.
BUSY
));
res
.
json
(
_
.
assign
({
result
:
false
},
returnCode
.
BUSY
));
}
}
link
=
link
+
'noticeDetail&infoId='
+
(
result
.
plate
||
''
)
+
'&ent_code='
+
ent_code
+
'&tId='
+
result
.
_id
+
'&uId='
+
uId
;
link
=
link
+
'noticeDetail&infoId='
+
(
result
.
plate
||
''
)
+
'&ent_code='
+
ent_code
+
'&tId='
+
result
.
_id
+
'&uId='
+
uId
;
title
=
result
.
title
,
desc
=
result
.
content
;
title
=
result
.
title
;
desc
=
result
.
content
?
result
.
content
.
replace
(
/<
\/?
.+
?
>/g
,
""
).
replace
(
/ /g
,
""
).
replace
(
/
\t
/g
,
""
).
replace
(
/
\n
/g
,
""
):
''
;
redis
.
get
(
key
,
function
(
error
,
share
){
redis
.
get
(
key
,
function
(
error
,
share
){
if
(
share
){
//有缓存
if
(
share
){
//有缓存
try
{
try
{
...
...
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