From ce5601c30ca23e37c592c0e1e37ae0f867aa1a68 Mon Sep 17 00:00:00 2001 From: Henry Wang Date: Thu, 12 Dec 2019 03:45:36 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=86=85=E8=B4=AD=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E4=B8=BA=E8=AE=A2=E9=98=85=E6=97=B6=E6=B2=A1=E6=9C=89=E5=B0=81?= =?UTF-8?q?=E9=9D=A2=20url=20=E5=AF=BC=E8=87=B4=E6=8A=A5=E9=94=99=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98=20(#3574)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/routes/apple/appstore/in-app-purchase.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/routes/apple/appstore/in-app-purchase.js b/lib/routes/apple/appstore/in-app-purchase.js index cab5f2de8..793aef444 100644 --- a/lib/routes/apple/appstore/in-app-purchase.js +++ b/lib/routes/apple/appstore/in-app-purchase.js @@ -41,13 +41,15 @@ module.exports = async (ctx) => { item = iap.map((e) => { const title = `${e.attributes.name} is now ${e.attributes.offers[0].priceFormatted}`; - return { + + const result = { link, guid: e.attributes.url, - description: e.attributes.description.standard + `
`, + description: e.attributes.artwork ? e.attributes.description.standard + `
` : e.attributes.description.standard, title, pubDate: new Date().toUTCString(), }; + return result; }); }