fix: gotOptions

This commit is contained in:
DIYgod
2020-02-07 17:24:16 +08:00
parent 5b05c76a93
commit e0cc27091b
+1 -1
View File
@@ -27,7 +27,7 @@ module.exports = async (ctx) => {
});
// 这个有个重定向,需要获取到真实地址后添加排序参数后再请求一次
const realUrl = `${newBookLandingPage.request.gotOptions.href}?sort=time&sub_type=`;
const realUrl = `${newBookLandingPage.request.options.url.href}?sort=time&sub_type=`;
const newBookPage = await got({
method: 'get',
url: realUrl,