Hotfix: mygalgame domain

This commit is contained in:
SettingDust
2018-11-30 18:14:12 +08:00
parent 8582caa8aa
commit 5c914523ed
3 changed files with 8 additions and 7 deletions
+2 -2
View File
@@ -1066,9 +1066,9 @@ GitHub 官方也提供了一些 RSS:
<route name="小组话题" author="SettingDust" example="/bangumi/group/boring" path="/bangumi/group/:id" :paramsDesc="['小组 id, 在小组页面地址栏查看']"/>
### 忧郁的弟弟
### 忧郁的 loli
<route name="文章" author="DIYgod" example="/mygalgame" path="/mygalgame"/>
<route name="文章" author="DIYgod" example="/mmgal" path="/mmgal"/>
### 看漫画
+2 -1
View File
@@ -526,7 +526,8 @@ router.get('/weatheralarm', require('./routes/weatheralarm'));
router.get('/gitlab/explore/:type', require('./routes/gitlab/explore'));
// 忧郁的弟弟
router.get('/mygalgame', require('./routes/galgame/mygalgame'));
router.get('/mygalgame', require('./routes/galgame/mmgal'));
router.get('/mmgal', require('./routes/galgame/mmgal'));
// 大连工业大学
router.get('/dpu/jiaowu/news/:type?', require('./routes/universities/dpu/jiaowu/news'));
@@ -4,9 +4,9 @@ const cheerio = require('cheerio');
module.exports = async (ctx) => {
const res = await axios({
method: 'get',
url: 'https://www.mygalgame.com/',
url: 'https://www.mmgal.com/',
header: {
Referer: 'https://www.mygalgame.com/',
Referer: 'https://www.mmgal.com/',
},
});
@@ -17,8 +17,8 @@ module.exports = async (ctx) => {
ctx.state.data = {
title: $('title').text(),
link: 'https://www.mygalgame.com/',
description: '忧郁的弟弟 - Galgame资源发布站',
link: 'https://www.mmgal.com/',
description: '忧郁的loli - Galgame资源发布站',
item:
list &&
list