fix: fix kaopu news api url (#19577)
Co-authored-by: pujinyao <pujinyao@eastmoney.com>
This commit is contained in:
parent
af81923b55
commit
9a393a1c4a
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Reference in New Issue