diff --git a/chinesebqb-md/md_to_wordpress.js b/chinesebqb-md/md_to_wordpress.js index 8fc85ff7..50c8a91f 100755 --- a/chinesebqb-md/md_to_wordpress.js +++ b/chinesebqb-md/md_to_wordpress.js @@ -72,7 +72,7 @@ async function get_md_filename_id_dic() { // 获取总页码数量 let x_wp_totalpages = await axios({ method: "get", - url: "https://v2fy.com/wp-json/wp/v2/posts?page=1" + url: "https://v2fy.com/wp-json/wp/v2/posts?per_page=100&page=1" }).then(res => { return new Promise((resolve, reject) => { resolve(parseInt(res.headers["x-wp-totalpages"])); @@ -84,7 +84,7 @@ async function get_md_filename_id_dic() { for (let i = 1; i <= x_wp_totalpages; i++) { await axios({ method: "get", - url: "https://v2fy.com/wp-json/wp/v2/posts?page=" + i + url: "https://v2fy.com/wp-json/wp/v2/posts?per_page=100&page=" + i }).then(res => { let res_data = res.data; diff --git a/push.js b/push.js index f6778154..a5409f28 100755 --- a/push.js +++ b/push.js @@ -182,7 +182,7 @@ async function create_index() { }); } -// 进入项目名加MD文件夹,执行md_to_wordpress +// 进入项目名加MD文件夹,执行md_to_wordpress async function main() { await create_index();