fix(route): 修正tiktok部分字段名称变动 (#12572)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user