Skip to content

Commit

Permalink
zhaoolee commit
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaoolee committed Nov 6, 2023
1 parent 27683a3 commit 456e831
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions chinesebqb-md/md_to_wordpress.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"]));
Expand All @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion push.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ async function create_index() {
});
}

// 进入项目名加MD文件夹,执行md_to_wordpress
// 进入项目名加MD文件夹,执行md_to_wordpress

async function main() {
await create_index();
Expand Down

0 comments on commit 456e831

Please sign in to comment.