fix: route scut/jwc add referer header (#2618)

This commit is contained in:
刻诺 2019-07-15 11:49:01 +08:00 committed by DIYgod
parent bca4b0e916
commit cef07734e1
2 changed files with 4 additions and 1 deletions

View File

@ -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`']">
| 教务通知 | 交流交换 | 新闻动态 | 媒体关注 | 学院通知 |
| -------- | -------- | -------- | -------- | -------- |

View File

@ -26,6 +26,9 @@ module.exports = async (ctx) => {
offset: 0,
pagesize: 20,
},
headers: {
Referer: listLink,
},
});
const itemList = listResponse.data.results.splice(0, 10);