feat(米游社v2): 新增 米游社v2 绝区零 公告 (#9814)

This commit is contained in:
CaoMeiYouRen 2022-05-25 19:54:27 +08:00 committed by GitHub
parent daf536e8b3
commit 7002b7ebd1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 5 deletions

View File

@ -587,9 +587,9 @@ Example`https://www.iyingdi.com/tz/people/55547` id 是 `55547`
游戏 id
| 崩坏三 | 原神 | 崩坏二 | 未定事件簿 | 星穹铁道 |
| --- | -- | --- | ----- | ---- |
| 1 | 2 | 3 | 4 | 6 |
| 崩坏三 | 原神 | 崩坏二 | 未定事件簿 | 星穹铁道 | 绝区零 |
| --- | -- | --- | ----- | ---- | --- |
| 1 | 2 | 3 | 4 | 6 | 8 |
公告类型

View File

@ -9,6 +9,7 @@ const GITS_MAP = {
3: '崩坏二',
4: '未定事件簿',
6: '崩坏:星穹铁道',
8: '绝区零',
};
// 公告类型

View File

@ -5,8 +5,7 @@ module.exports = {
{
title: '米游社 - 官方公告',
docs: 'https://docs.rsshub.app/game.html#mi-ha-you-mi-you-she-guan-fang-gong-gao',
// source: ['/ys/home/28', '/bh3/home/6', '/bh2/home/31', '/wd/home/33', '/sr/home/53'],
source: ['/:game/home/28', '/:game/home/6', '/:game/home/31', '/:game/home/33', '/:game/home/53'],
source: ['/:game/home/28', '/:game/home/6', '/:game/home/31', '/:game/home/33', '/:game/home/53', '/:game/home/58'],
target: (params, url) => {
const GITS_MAP = {
bh3: 1, // '崩坏三',
@ -14,6 +13,7 @@ module.exports = {
bh2: 3, // '崩坏二',
wd: 4, // '未定事件簿',
sr: 6, // '崩坏:星穹铁道',
zzz: 8, // '绝区零'
};
const { game } = params;
const gids = GITS_MAP[game];