fix(route): Epic Games Store item link incorrect (#9822)

* fix(route): Epic Games Store

* fix(route): Epic Games Store item link incorrect
This commit is contained in:
KotaHv
2022-05-26 18:12:20 +08:00
committed by GitHub
parent 1c01b70b8d
commit 5a46d1edaf
+3 -1
View File
@@ -30,7 +30,9 @@ module.exports = async (ctx) => {
.map((item) => ({
title: item.title,
author: item.seller.name,
link: `${rootUrl}/${locale}/p/${item.catalogNs.mappings.length > 0 ? item.catalogNs.mappings[0].pageSlug : item.offerMappings.length > 0 ? item.offerMappings[0].pageSlug : item.urlSlug}`,
link: `${rootUrl}/${locale}/p/${
item.catalogNs.mappings.length > 0 ? item.catalogNs.mappings[0].pageSlug : item.offerMappings.length > 0 ? item.offerMappings[0].pageSlug : item.productSlug ? item.productSlug : item.urlSlug
}`,
description: art(path.join(__dirname, 'templates/description.art'), {
description: item.description,
image: item.keyImages[0].url,