mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-09 06:30:40 +08:00
fix: order of offer(1point3acres); update: docs of offer(1point… (#3644)
This commit is contained in:
@@ -183,7 +183,7 @@ pageClass: routes
|
||||
|
||||
### 录取结果
|
||||
|
||||
<Route author="NavePnow" example="/1point3acres/offer/12/1/CMU" path="/1point3acres/offer/:year?/:major?/:school?" :paramsDesc="['录取年份 id ', '录取专业 id', '录取学校 id']">
|
||||
<Route author="NavePnow" example="/1point3acres/offer/12/null/CMU" path="/1point3acres/offer/:year?/:major?/:school?" :paramsDesc="['录取年份 id,空为null', '录取专业 id,空为null', '录取学校 id,空为null']">
|
||||
::: warning 三个 id 获取方式
|
||||
|
||||
1. 打开 https://offer.1point3acres.com
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
const got = require('@/utils/got');
|
||||
|
||||
module.exports = async (ctx) => {
|
||||
// let out = '';
|
||||
// const { id } = ctx.params;
|
||||
// const { year } = ctx.params.year || 'null';
|
||||
// year 2017-2022
|
||||
@@ -137,6 +138,26 @@ module.exports = async (ctx) => {
|
||||
}
|
||||
}
|
||||
const data = responseBasic.data.results;
|
||||
// data.id-> 访问offer具体信息->获取 data.tid
|
||||
// if (data.id !== 0) {
|
||||
// out = await Promise.all(
|
||||
// data.map(async (item) => {
|
||||
// var gettidresponse = await got({
|
||||
// method: 'get',
|
||||
// url: 'https://api.1point3acres.com/offer/results/'+ item.id + '/backgrounds',
|
||||
// headers: {
|
||||
// authorization: 'eyJhbGciOiJIUzUxMiIsImlhdCI6MTU3Njk5Njc5OSwiZXhwIjoxNTg0ODU5MTk5fQ.eyJ1aWQiOjQ1NzQyN30.0ei5UE6OgLBzN2_IS7xUIbIfW_S1Wzl42q2UeusbboxuzvctO_4Mz6YRr6f0PBLUVZMETxt8F0_4-yqIJ3_kUQ',
|
||||
// },
|
||||
// });
|
||||
// var tid = gettidresponse.data.background.tid;
|
||||
// //https: //www.1point3acres.com/bbs/thread-581177-1-1.html
|
||||
// console.log(tid);
|
||||
// const threadlink = 'https://www.1point3acres.com/bbs/thread-' + tid + '-1-1.html';
|
||||
// console.log(threadlink);
|
||||
// return threadlink;
|
||||
// })
|
||||
// );
|
||||
// }
|
||||
// let responseBasic_1;
|
||||
// responseBasic_1 = await got({
|
||||
// method: 'get',
|
||||
@@ -190,15 +211,9 @@ module.exports = async (ctx) => {
|
||||
`<b>提交时间:</b>` +
|
||||
item.submittime +
|
||||
'<br>',
|
||||
pubDate: new Date(item.submittime + ' GMT+8').toUTCString(),
|
||||
// pubDate: new Date(item.submittime + ' GMT+8').toUTCString(),
|
||||
link: `https://offer.1point3acres.com`,
|
||||
// responseBasic_1 =await got({
|
||||
// method: 'get',
|
||||
// url: `https://api.1point3acres.com/offer/results/${item.id}/backgrounds`,
|
||||
// headers: {
|
||||
// authorization: `eyJhbGciOiJIUzUxMiIsImlhdCI6MTU3Njk5Njc5OSwiZXhwIjoxNTg0ODU5MTk5fQ.eyJ1aWQiOjQ1NzQyN30.0ei5UE6OgLBzN2_IS7xUIbIfW_S1Wzl42q2UeusbboxuzvctO_4Mz6YRr6f0PBLUVZMETxt8F0_4-yqIJ3_kUQ`,
|
||||
// },
|
||||
// }).data.data.background.tid,
|
||||
// link: out,
|
||||
})),
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user