feat(米游社v2): 新增 米游社v2 绝区零 公告 (#9814)
This commit is contained in:
@@ -9,6 +9,7 @@ const GITS_MAP = {
|
||||
3: '崩坏二',
|
||||
4: '未定事件簿',
|
||||
6: '崩坏:星穹铁道',
|
||||
8: '绝区零',
|
||||
};
|
||||
|
||||
// 公告类型
|
||||
|
||||
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user