Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-blk
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
1
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
zhangxiaoru
2016-07-25 19:00:03 +0800
Commit
f11b498dc8aa7b6058ec97ea1ef4e9aa2da6f0c0
1 parent
96f07f62
share
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
apps/editorial/controllers/editorial.js
apps/editorial/models/editorial.js
apps/editorial/controllers/editorial.js
View file @
f11b498
...
...
@@ -155,7 +155,7 @@ const detail = (req, res, next) => {
share
:
{
shareImg
:
result
.
content
.
shareImg
,
shareDesc
:
result
.
head
.
title
,
weixinUrl
:
re
q
.
original
Url
weixinUrl
:
re
sult
.
head
.
weixin
Url
}
...
...
apps/editorial/models/editorial.js
View file @
f11b498
...
...
@@ -213,7 +213,8 @@ const _processHeadData = (list) => {
time
:
data
.
publishTime
,
isLike
:
data
.
isPraise
,
isFavor
:
data
.
isFavor
,
likeNum
:
data
.
praiseNum
likeNum
:
data
.
praiseNum
,
weixinUrl
:
`
http
:
//guang.m.yohobuy.com/info/index?id=${data.id}`
};
}
...
...
@@ -252,6 +253,7 @@ const _processHeadData = (list) => {
avatar
:
data
.
avatar
,
name
:
data
.
name
});
console
.
log
(
newData
.
headData
)
return
newData
;
})();
...
...
Please
register
or
login
to post a comment