zhaoolee commit

This commit is contained in:
zhaoolee
2023-11-06 12:06:38 +08:00
parent 27683a35b1
commit 456e831c10
2 changed files with 3 additions and 3 deletions

View File

@@ -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;

View File

@@ -182,7 +182,7 @@ async function create_index() {
});
}
// 进入项目名加MD文件夹,执行md_to_wordpress
// 进入项目名加MD文件夹,执行md_to_wordpress
async function main() {
await create_index();