fix axios params error (#436)
axios 中设置 headers 的参数应该是 `headers` 而不是 `header`
This commit is contained in:
@@ -15,7 +15,7 @@ module.exports = async (ctx) => {
|
||||
filter_locale: filter_locale,
|
||||
sort: 'updated',
|
||||
},
|
||||
header: {
|
||||
headers: {
|
||||
'User-Agent': config.ua,
|
||||
},
|
||||
});
|
||||
|
||||
@@ -6,7 +6,7 @@ module.exports = async (ctx) => {
|
||||
const res = await axios({
|
||||
method: 'get',
|
||||
url: 'https://cs.scnu.edu.cn/xueshenggongzuo/chengchangfazhan/kejichuangxin/',
|
||||
header: {
|
||||
headers: {
|
||||
'User-Agent': config.ua,
|
||||
Referer: 'https://cs.scnu.edu.cn',
|
||||
},
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@ module.exports = async (ctx) => {
|
||||
const res = await axios({
|
||||
method: 'get',
|
||||
url: 'https://jw.scnu.edu.cn/ann/index.html',
|
||||
header: {
|
||||
headers: {
|
||||
'User-Agent': config.ua,
|
||||
Referer: 'https://jw.scnu.edu.cn',
|
||||
},
|
||||
|
||||
@@ -6,7 +6,7 @@ module.exports = async (ctx) => {
|
||||
const res = await axios({
|
||||
method: 'get',
|
||||
url: 'https://lib.scnu.edu.cn/news/zuixingonggao',
|
||||
header: {
|
||||
headers: {
|
||||
'User-Agent': config.ua,
|
||||
Referer: 'https://lib.scnu.edu.cn',
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user