fix(route): 修正tiktok部分字段名称变动 (#12572)

This commit is contained in:
YsMox
2023-05-28 13:55:52 +03:00
committed by GitHub
parent 4fd692d47f
commit 55cbde4789
+5 -5
View File
@@ -24,10 +24,10 @@ module.exports = async (ctx) => {
browser.close();
const lang = SIGI_STATE.AppContext.lang;
const SharingMeta = SIGI_STATE.SharingMeta;
const SharingMetaState = SIGI_STATE.SharingMetaState;
const ItemModule = SIGI_STATE.ItemModule;
return { lang, SharingMeta, ItemModule };
return { lang, SharingMetaState, ItemModule };
},
config.cache.routeExpire,
false
@@ -46,9 +46,9 @@ module.exports = async (ctx) => {
}));
ctx.state.data = {
title: data.SharingMeta.value['og:title'],
description: data.SharingMeta.value['og:description'],
image: data.SharingMeta.value['og:image'],
title: data.SharingMetaState.value['og:title'],
description: data.SharingMetaState.value['og:description'],
image: data.SharingMetaState.value['og:image'],
link: `${baseUrl}/${user}`,
item: items,
language: data.lang,