fix: route scut/jwc add referer header (#2618)
This commit is contained in:
parent
bca4b0e916
commit
cef07734e1
|
|
@ -312,7 +312,7 @@ category 列表:
|
|||
|
||||
### 教务处新闻动态
|
||||
|
||||
<Route author="KeNorizon" example="/scut/jwc/1" path="/scut/jwc/:category?" :paramsDesc="['新闻动态分类, 可选, 默认为 `1`']">
|
||||
<Route author="KeNorizon" example="/scut/jwc/1" path="/scut/jwc/:category?" :paramsDesc="['新闻动态分类, 默认为 `1`']">
|
||||
|
||||
| 教务通知 | 交流交换 | 新闻动态 | 媒体关注 | 学院通知 |
|
||||
| -------- | -------- | -------- | -------- | -------- |
|
||||
|
|
|
|||
|
|
@ -26,6 +26,9 @@ module.exports = async (ctx) => {
|
|||
offset: 0,
|
||||
pagesize: 20,
|
||||
},
|
||||
headers: {
|
||||
Referer: listLink,
|
||||
},
|
||||
});
|
||||
|
||||
const itemList = listResponse.data.results.splice(0, 10);
|
||||
|
|
|
|||
Loading…
Reference in New Issue