theme-photo

This commit is contained in:
tangly1024.com
2024-11-04 16:11:27 +08:00
parent c43924db77
commit 67019e9477
9 changed files with 169 additions and 180 deletions

View File

@@ -65,8 +65,8 @@ export async function getNotionPageData({ pageId, from }) {
const cacheKey = 'page_block_' + pageId
let data = await getDataFromCache(cacheKey)
if (data && data.pageIds?.length > 0) {
// console.log('[API<<--缓存]', `from:${from}`, `root-page-id:${pageId}`)
// return data
console.debug('[API<<--缓存]', `from:${from}`, `root-page-id:${pageId}`)
return data
} else {
// 从接口读取
data = await getDataBaseInfoByNotionAPI({ pageId, from })