refactor: Update characterCards.ts to use new API endpoint for downloading character images

This commit is contained in:
kwaroran
2024-05-14 21:45:44 +09:00
parent 33ba9f0fe1
commit 59fafead53

View File

@@ -933,7 +933,7 @@ export async function downloadRisuHub(id:string) {
type: "wait",
msg: "Downloading..."
})
const res = await fetch(hubURL + '/hub/get/' + id, {
const res = await fetch("https://realm.risuai.net/api/v1/download/png-v3/" + id + '?cross=true', {
headers: {
"x-risu-api-version": "4"
}