墨冉的API挂了好久了...(现在还没好)
本地跑了个API,导了半天发现数据库没初始化完2333...
This commit is contained in:
parent
ec1abf84ab
commit
b71ca19cad
@ -18,8 +18,8 @@ export default function DatabaseStats() {
|
|||||||
const fetchCounts = async () => {
|
const fetchCounts = async () => {
|
||||||
try {
|
try {
|
||||||
setLoading(true)
|
setLoading(true)
|
||||||
const videoResponse = await fetch("https://v-api-proxy-cn-1.mei.lv:3389/basic/v1/database/video_count")
|
const videoResponse = await fetch("https://api.mmeiblog.cn/NineVocalRank/basic/v1/database/video_count")
|
||||||
const uploaderResponse = await fetch("https://v-api-proxy-cn-1.mei.lv:3389/basic/v1/database/uploader_count")
|
const uploaderResponse = await fetch("https://api.mmeiblog.cn/NineVocalRank/basic/v1/database/uploader_count")
|
||||||
|
|
||||||
if (!videoResponse.ok || !uploaderResponse.ok) {
|
if (!videoResponse.ok || !uploaderResponse.ok) {
|
||||||
throw new Error("服务器响应错误")
|
throw new Error("服务器响应错误")
|
||||||
|
@ -13,7 +13,7 @@ export default function ServerStats() {
|
|||||||
const fetchServerStat = async () => {
|
const fetchServerStat = async () => {
|
||||||
try {
|
try {
|
||||||
setLoading(true)
|
setLoading(true)
|
||||||
const response = await fetch("https://v-api-proxy-cn-1.mei.lv:3389/basic/v1/ServerStat/info")
|
const response = await fetch("https://api.mmeiblog.cn/NineVocalRank/basic/v1/ServerStat/info")
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
throw new Error("服务器响应错误")
|
throw new Error("服务器响应错误")
|
||||||
}
|
}
|
||||||
|
@ -38,7 +38,7 @@ export default function UploaderSearch() {
|
|||||||
setLoading(true)
|
setLoading(true)
|
||||||
setError(null)
|
setError(null)
|
||||||
try {
|
try {
|
||||||
const response = await fetch(`https://v-api-proxy-cn-1.mei.lv:3389/basic/v1/uploader/${uid}`)
|
const response = await fetch(`https://api.mmeiblog.cn/NineVocalRank/basic/v1/uploader/${uid}`)
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
throw new Error("服务器响应错误")
|
throw new Error("服务器响应错误")
|
||||||
}
|
}
|
||||||
|
@ -88,10 +88,10 @@ export default function VideoSearch() {
|
|||||||
setError(null)
|
setError(null)
|
||||||
try {
|
try {
|
||||||
const response = await fetch(
|
const response = await fetch(
|
||||||
`https://v-api-proxy-cn-1.mei.lv:3389/vocaloid_rank/v1/video/${searchTerm}`,
|
`https://api.mmeiblog.cn/NineVocalRank/vocaloid_rank/v1/video/${searchTerm}`,
|
||||||
)
|
)
|
||||||
const weekly_response = await fetch(
|
const weekly_response = await fetch(
|
||||||
`https://v-api-proxy-cn-1.mei.lv:3389/vocaloid_rank/v1/sorted/${searchTerm}`,
|
`https://api.mmeiblog.cn/NineVocalRank/vocaloid_rank/v1/sorted/${searchTerm}`,
|
||||||
)
|
)
|
||||||
if (!response.ok || !weekly_response.ok) {
|
if (!response.ok || !weekly_response.ok) {
|
||||||
throw new Error("服务器响应错误")
|
throw new Error("服务器响应错误")
|
||||||
|
Loading…
Reference in New Issue
Block a user