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
9f297526
Commit
9f297526
authored
Dec 16, 2015
by
陈家荣
2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新分享2
parent
c5614217
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
forumShare.js
app/controllers/mobile/forumShare.js
+3
-3
httpService.js
app/service/httpService.js
+1
-2
No files found.
app/controllers/mobile/forumShare.js
View file @
9f297526
...
...
@@ -294,7 +294,7 @@ router.get('/sharev2.js', function(req, res, next) {
share_log
=
{};
// delete req.session.mobileForumUser.share_log; //在接口分享中不再使用这个,因为在其它地方会把req.session.mobileForumUser重新赋值
delete
req
.
session
.
share
_l
og
;
//新的分享对象
delete
req
.
session
.
share
L
og
;
//新的分享对象
var
title
=
''
,
desc
=
''
,
imgUrl
=
''
;
...
...
@@ -307,7 +307,7 @@ router.get('/sharev2.js', function(req, res, next) {
share_log
.
type
=
2
;
share_log
.
info
=
id
;
//替换分享log内容
req
.
session
.
share
_l
og
=
share_log
;
req
.
session
.
share
L
og
=
share_log
;
forumInfoService
.
getInfoById
(
id
,
function
(
err
,
forumInfo
)
{
if
(
err
)
{
...
...
@@ -340,7 +340,7 @@ router.get('/sharev2.js', function(req, res, next) {
share_log
.
info
=
thread
.
info
.
_id
||
thread
.
info
;
share_log
.
thread_type
=
thread
.
pid
?
4
:
thread
.
type
;
//替换分享log内容
req
.
session
.
share
_l
og
=
share_log
;
req
.
session
.
share
L
og
=
share_log
;
//组装分享路径与判断分享类型
...
...
app/service/httpService.js
View file @
9f297526
...
...
@@ -22,7 +22,6 @@ var ForumPVLog = mongoose.model('ForumPVLog'),
ForumShareLog
=
mongoose
.
model
(
'ForumShareLog'
),
ForumThread
=
mongoose
.
model
(
'ForumThread'
);
exports
.
sendRequest
=
function
(
ent_code
,
mid
,
action
,
messageid
,
integral
,
exp
)
{
console
.
log
(
'送积分了'
);
var
obj
=
{
tag
:
'member'
,
key
:
'forum'
,
...
...
@@ -143,7 +142,7 @@ exports.createLog = function(req,source,info,type,thread_type,thread,p_thread) {
};
exports
.
createShareLog
=
function
(
req
,
share_type
)
{
var
logObj
=
req
.
session
.
share
_l
og
||
{};
var
logObj
=
req
.
session
.
share
L
og
||
{};
logObj
.
source
=
req
.
session
.
mobileForumUser
.
source
;
logObj
.
mid
=
req
.
session
.
openUser
.
mid
;
logObj
.
ent_code
=
req
.
session
.
user
.
ent_code
;
...
...
strong
@strong
mentioned in commit
7f665441
·
Dec 16, 2015
mentioned in commit
7f665441
mentioned in commit 7f6654417cf8c2b0ef70f15db7f0bd0ad3e802a8
Toggle commit list
strong
@strong
mentioned in commit
63b57f88
·
Dec 17, 2015
mentioned in commit
63b57f88
mentioned in commit 63b57f8858efc4b9d11a79dd9557c6cc0e529df2
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