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
b6cc2e70
Commit
b6cc2e70
authored
Sep 24, 2015
by
陈志良
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分享
parent
910062ea
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 @
b6cc2e70
...
...
@@ -69,7 +69,7 @@ function getWX(res, title, desc, link, imgUrl, mid,ent_code, id,type,forumThread
title
=
title
?
title
.
replace
(
/{文章标题}|{话题名称}|{照片墙标题}/g
,
forumThread
.
title
):
''
;
desc
=
desc
?
desc
.
replace
(
/{文章标题}|{话题名称}|{照片墙标题}/g
,
forumThread
.
title
):
''
;
write
(
res
,
title
,
desc
,
link
,
imgUrl
,
mid
,
ent_code
);
write
(
res
,
title
,
desc
.
substr
(
0
,
30
)
,
link
,
imgUrl
,
mid
,
ent_code
);
}
}
...
...
@@ -259,7 +259,7 @@ function getWXV2(res, title, desc, link, imgUrl, mid,ent_code, id,type,forumThre
}
res
.
json
({
title
:
title
,
desc
:
desc
,
desc
:
desc
.
substr
(
0
,
30
)
,
link
:
link
,
imgUrl
:
imgUrl
,
ent_code
:
ent_code
...
...
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