mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-07 21:47:57 +08:00
refactor: rename axios to got
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
const axios = require('@/utils/axios');
|
||||
const got = require('@/utils/got');
|
||||
const cheerio = require('cheerio');
|
||||
|
||||
module.exports = async (ctx) => {
|
||||
const { data: htmlString } = await axios({
|
||||
const { data: htmlString } = await got({
|
||||
method: 'get',
|
||||
url: 'https://mp.weixin.qq.com/cgi-bin/announce?action=getannouncementlist&lang=zh_CN',
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user