...
|
...
|
@@ -86,9 +86,12 @@ class Star { |
|
|
});
|
|
|
});
|
|
|
|
|
|
let urlObj = url.parse(data.url);
|
|
|
let appUrl = `&openby:yohobuy={"action":"go.h5","params":{"id":"","share":"","shareparam":{},"islogin":"N","type":0,"updateflag":"N","url":"${ urlObj.protocol + '//' + urlObj.host + urlObj.pathname}","param":${JSON.stringify(qs.parse(urlObj.query))}}}`.replace(/\//g, '\/'); // eslint-disable-line
|
|
|
|
|
|
formatData.articles.push(_.merge({
|
|
|
id: data.id,
|
|
|
url: data.url,
|
|
|
url: data.url + appUrl,
|
|
|
title: data.title,
|
|
|
articeTxt: data.intro,
|
|
|
src: data.src,
|
...
|
...
|
|