获取外部Notion页面

This commit is contained in:
tangly
2022-11-16 22:21:57 +08:00
parent 12babbdbca
commit 1e56ced00d
8 changed files with 59 additions and 17 deletions

View File

@@ -28,7 +28,7 @@ export async function getPostBlocks(id, from, slice) {
* @param {*} id
* @param {*} retryAttempts
*/
async function getPageWithRetry(id, from, retryAttempts = 3) {
export async function getPageWithRetry(id, from, retryAttempts = 3) {
if (retryAttempts && retryAttempts > 0) {
console.log('[请求API]', `from:${from}`, `id:${id}`, retryAttempts < 3 ? `剩余重试次数:${retryAttempts}` : '')
try {