Skip to content

Commit

Permalink
fix: 上海立信会计金融学院 HTTPS (DIYgod#6446)
Browse files Browse the repository at this point in the history
  • Loading branch information
laampui authored Dec 15, 2020
1 parent 3f9bf01 commit 83b959d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/routes/universities/slu/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ module.exports = {
const response = await got({
method: 'get',
url,
https: {
rejectUnauthorized: false,
},
});
const $ = cheerio.load(response.data);
// 获取列表
Expand Down Expand Up @@ -40,6 +43,9 @@ module.exports = {
const detail_response = await got({
method: 'get',
url: href,
https: {
rejectUnauthorized: false,
},
});
const $ = cheerio.load(detail_response.data);
const title = $('title').text();
Expand Down

0 comments on commit 83b959d

Please sign in to comment.