修改获取文章接口参数

This commit is contained in:
wenjiarui 2022-12-21 13:16:31 +08:00
parent 9e178d12fd
commit f808afb15d
1 changed files with 3 additions and 3 deletions

View File

@ -215,18 +215,18 @@ export class WechatPublicInstance {
)
}
async batchGetArticle(options: {
indexFrom?: number,
offset?: number,
count: number,
noContent?: 0 | 1,
}) {
const { indexFrom, count, noContent } = options;
const { indexFrom, offset, noContent } = options;
const myInit = {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({
offset: indexFrom,
offset,
count,
no_content: noContent,
}),