mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-06 05:03:44 +08:00
refactor: rename axios to got
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
const axios = require('@/utils/axios');
|
||||
const got = require('@/utils/got');
|
||||
const cheerio = require('cheerio');
|
||||
|
||||
module.exports = async (ctx) => {
|
||||
const link = 'https://developers.weixin.qq.com/community/plugins';
|
||||
const response = await axios({
|
||||
const response = await got({
|
||||
method: 'post',
|
||||
url: `https://developers.weixin.qq.com/community/ngi/plugins/cases?random=${Math.random()}`,
|
||||
headers: {
|
||||
@@ -28,7 +28,7 @@ module.exports = async (ctx) => {
|
||||
if (value) {
|
||||
item.description = value;
|
||||
} else {
|
||||
const pluginDetail = await axios({
|
||||
const pluginDetail = await got({
|
||||
method: 'get',
|
||||
url: `${url}?random=${Math.random()}`,
|
||||
headers: {
|
||||
|
||||
Reference in New Issue
Block a user