fix: fix kaopu news api url (#19577)

Co-authored-by: pujinyao <pujinyao@eastmoney.com>
This commit is contained in:
pjy 2025-07-11 16:28:01 +08:00 committed by GitHub
parent af81923b55
commit 9a393a1c4a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ async function handler(ctx) {
const rootUrl = 'https://kaopu.news';
const currentUrl = `${rootUrl}/${language === 'zh-hant' ? 'zh-hant' : 'index'}.html`;
// API PATH: https://kaopucdn.azureedge.net/jsondata/news_list_beta_hans_0.json
const apiUrl = `https://kaopucdn.azureedge.net/jsondata/news_list_beta_han${language === 'zh-hant' ? 't' : 's'}_0.json`;
const apiUrl = `https://kaopustorage.blob.core.windows.net/jsondata/news_list_beta_han${language === 'zh-hant' ? 't' : 's'}_0.json`;
const response = await got({
method: 'get',