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
fce4cda2
Commit
fce4cda2
authored
Sep 24, 2015
by
陈志良
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '0922_forum_share' into SANDBOX
parents
7bc04676
f9ae628c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
forumShare.js
app/controllers/mobile/forumShare.js
+6
-9
No files found.
app/controllers/mobile/forumShare.js
View file @
fce4cda2
...
...
@@ -102,15 +102,13 @@ router.get('/:ent_code/share.js', function(req, res, next) {
}
else
{
if
(
forumInfo
.
share_type
==
1
){
var
shareInfo
=
forumInfo
.
share
||
{};
title
=
shareInfo
.
title
,
desc
=
shareInfo
.
description
,
imgUrl
=
shareInfo
.
icon
;
link
=
link
+
'index&infoId='
+
id
+
'&uId='
+
uId
;
getWX
(
res
,
title
,
desc
,
link
,
imgUrl
,
mid
,
ent_code
,
id
,
type
,
null
);
return
;
title
=
shareInfo
.
title
,
desc
=
shareInfo
.
description
,
imgUrl
=
shareInfo
.
icon
;
}
else
{
//默认分享设置
title
=
forumInfo
.
name
,
desc
=
forumInfo
.
description
,
imgUrl
=
forumInfo
.
icon
;
getWX
(
res
,
title
,
desc
,
link
,
imgUrl
,
mid
,
ent_code
,
id
,
type
,
null
);
}
link
+=
'index&infoId='
+
id
+
'&uId='
+
uId
;
getWX
(
res
,
title
,
desc
,
link
,
imgUrl
,
mid
,
ent_code
,
id
,
type
,
null
);
}
});
}
else
if
(
type
===
'Thread'
)
{
...
...
@@ -298,12 +296,11 @@ router.get('/sharev2.js', function(req, res, next) {
if
(
forumInfo
.
share_type
&&
forumInfo
.
share_type
==
1
){
var
shareInfo
=
forumInfo
.
share
||
{};
title
=
shareInfo
.
title
,
desc
=
shareInfo
.
description
,
imgUrl
=
shareInfo
.
icon
;
link
=
link
+
'index&infoId='
+
id
+
'&uId='
+
uId
;
getWXV2
(
res
,
title
,
desc
,
link
,
imgUrl
,
mid
,
ent_code
,
id
,
type
,
null
);
}
else
{
title
=
forumInfo
.
name
,
desc
=
forumInfo
.
description
,
imgUrl
=
forumInfo
.
icon
;
getWXV2
(
res
,
title
,
desc
,
link
,
imgUrl
,
mid
,
ent_code
,
id
,
type
,
null
);
}
}
link
=
link
+
'index&infoId='
+
id
+
'&uId='
+
uId
;
getWXV2
(
res
,
title
,
desc
,
link
,
imgUrl
,
mid
,
ent_code
,
id
,
type
,
null
);
}
});
...
...
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