From 55cbde47895985dd5fbc08ca4b6b762ba027f388 Mon Sep 17 00:00:00 2001 From: YsMox Date: Sun, 28 May 2023 18:55:52 +0800 Subject: [PATCH] =?UTF-8?q?fix(route):=20=E4=BF=AE=E6=AD=A3tiktok=E9=83=A8?= =?UTF-8?q?=E5=88=86=E5=AD=97=E6=AE=B5=E5=90=8D=E7=A7=B0=E5=8F=98=E5=8A=A8?= =?UTF-8?q?=20(#12572)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/v2/tiktok/user.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/v2/tiktok/user.js b/lib/v2/tiktok/user.js index 075765c6f..f13bf3461 100644 --- a/lib/v2/tiktok/user.js +++ b/lib/v2/tiktok/user.js @@ -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,