From 6218f764b1b67d4c439943a7f724a7d422b074d5 Mon Sep 17 00:00:00 2001 From: Scighost Date: Sun, 8 Sep 2024 20:07:08 +0800 Subject: [PATCH] change announcement alert api of bh3_cn --- src/Starward.Core/Launcher/LauncherClient.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Starward.Core/Launcher/LauncherClient.cs b/src/Starward.Core/Launcher/LauncherClient.cs index 165971884..7eb75d0c3 100644 --- a/src/Starward.Core/Launcher/LauncherClient.cs +++ b/src/Starward.Core/Launcher/LauncherClient.cs @@ -215,7 +215,7 @@ public async Task IsNoticesAlertAsync(GameBiz biz, long uid, string? lang GameBiz.hk4e_global => $"https://sg-hk4e-api.hoyoverse.com/common/hk4e_global/announcement/api/getAlertAnn?game=hk4e&game_biz=hk4e_global&lang={lang}&bundle_id=hk4e_global&channel_id=1&level=60&platform=pc®ion=os_asia&uid={uid}", GameBiz.hkrpg_cn or GameBiz.hkrpg_bilibili => $"https://hkrpg-api.mihoyo.com/common/hkrpg_cn/announcement/api/getAlertAnn?bundle_id=hkrpg_cn&channel_id=1&game=hkrpg&game_biz=hkrpg_cn&lang={lang}&level=70&platform=pc®ion=prod_gf_cn&uid={uid}", GameBiz.hkrpg_global => $"https://sg-hkrpg-api.hoyoverse.com/common/hkrpg_global/announcement/api/getAlertAnn?bundle_id=hkrpg_global&channel_id=1&game=hkrpg&game_biz=hkrpg_global&lang={lang}&level=1&platform=pc®ion=prod_official_asia&uid={uid}", - GameBiz.bh3_cn => $"https://api-takumi.mihoyo.com/common/bh3_cn/announcement/api/getAlertAnn?game=bh3&game_biz=bh3_cn&lang={lang}&bundle_id=bh3_cn&platform=pc®ion=android01&level=88&channel_id=1&uid={uid}", + GameBiz.bh3_cn => $"https://ann-api.mihoyo.com/common/bh3_cn/announcement/api/getAlertAnn?game=bh3&game_biz=bh3_cn&lang={lang}&bundle_id=bh3_cn&platform=pc®ion=android01&level=88&channel_id=1&uid={uid}", GameBiz.bh3_global or GameBiz.bh3_jp or GameBiz.bh3_kr or GameBiz.bh3_overseas or GameBiz.bh3_tw => $"https://sg-public-api.hoyoverse.com/common/bh3_global/announcement/api/getAlertAnn?game=bh3&game_biz=bh3_global&lang={lang}&bundle_id=bh3_os&platform=pc®ion=overseas01&level=88&channel_id=1&uid={uid}", GameBiz.nap_cn or GameBiz.hk4e_bilibili => $"https://announcement-api.mihoyo.com/common/nap_cn/announcement/api/getAlertAnn?bundle_id=nap_cn&channel_id=1&game=nap&game_biz=nap_cn&lang=zh-cn&level=60&platform=pc®ion=prod_gf_cn&uid={uid}", GameBiz.nap_global => $"https://sg-announcement-api.hoyoverse.com/common/nap_global/announcement/api/getAlertAnn?bundle_id=nap_global&channel_id=1&game=nap&game_biz=nap_global&lang={lang}&level=60&platform=pc®ion=prod_gf_jp&uid={uid}",