diff --git a/lib/notion/getNotionData.js b/lib/notion/getNotionData.js index 80466b9e..d3a2b2de 100755 --- a/lib/notion/getNotionData.js +++ b/lib/notion/getNotionData.js @@ -106,7 +106,7 @@ export async function getNotionPageData({ pageId, from }) { const cacheKey = 'page_block_' + pageId const data = await getDataFromCache(cacheKey) if (data && data.pageIds?.length > 0) { - console.log('[缓存]:', `from:${from}`, `root-page-id:${pageId}`) + console.log('[API<<--缓存]', `from:${from}`, `root-page-id:${pageId}`) return data } const db = await getDataBaseInfoByNotionAPI({ pageId, from }) diff --git a/lib/notion/getPostBlocks.js b/lib/notion/getPostBlocks.js index 69888b5d..8999cae2 100644 --- a/lib/notion/getPostBlocks.js +++ b/lib/notion/getPostBlocks.js @@ -14,7 +14,7 @@ export async function getPostBlocks(id, from, slice) { const cacheKey = 'page_block_' + id let pageBlock = await getDataFromCache(cacheKey) if (pageBlock) { - console.log('[缓存]:', `from:${from}`, cacheKey) + console.log('[API<<--缓存]', `from:${from}`, cacheKey) return filterPostBlocks(id, pageBlock, slice) } @@ -31,7 +31,7 @@ export async function getSingleBlock(id, from) { const cacheKey = 'single_block_' + id let pageBlock = await getDataFromCache(cacheKey) if (pageBlock) { - console.log('[缓存]:', `from:${from}`, cacheKey) + console.log('[API<<--缓存]', `from:${from}`, cacheKey) return pageBlock }