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
bc2b4864
Commit
bc2b4864
authored
Jan 28, 2016
by
陈家荣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调试分享
parent
f75b832a
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 @
bc2b4864
...
...
@@ -307,6 +307,9 @@ router.get('/sharev2.js', function(req, res, next) {
var
title
=
''
,
desc
=
''
,
imgUrl
=
''
;
var
key
=
ent_code
+
'forum_share_index_info'
;
console
.
log
(
'key: '
+
key
);
if
(
type
&&
type
===
'index'
){
var
expire
=
60
*
60
;
redis
.
get
(
key
,
function
(
error
,
share
){
...
...
@@ -447,9 +450,17 @@ router.get('/sharev2.js', function(req, res, next) {
share_log
.
p_thread
=
thread
.
pid
;
share_log
.
info
=
thread
.
info
.
_id
||
thread
.
info
;
share_log
.
thread_type
=
thread
.
pid
?
4
:
thread
.
type
;
console
.
log
(
' old session -----------> '
);
console
.
log
(
req
.
session
);
//替换分享log内容
req
.
session
.
shareLog
=
share_log
;
console
.
log
(
' new session -----------> '
);
console
.
log
(
req
.
session
);
//组装分享路径与判断分享类型
var
baseParamsUrl
=
'&infoId='
+
thread
.
info
.
_id
+
'&ent_code='
+
ent_code
+
'&tId='
+
thread
.
_id
+
'&uId='
+
uId
;
...
...
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