[feat] apiver 2

This commit is contained in:
kwaroran
2023-07-19 22:52:46 +09:00
parent 287cfcb1f9
commit 5a2cecb739

View File

@@ -600,6 +600,7 @@ export async function shareRisuHub(char:character, arg:{
img: Buffer.from(img).toString('base64'),
resources: resources,
token: get(DataBase)?.account?.token,
apiver: 2
})
})
@@ -662,7 +663,8 @@ export async function downloadRisuHub(id:string) {
const res = await fetch(hubURL + '/hub/get', {
method: "POST",
body: JSON.stringify({
id: id
id: id,
apiver: 2
})
})
if(res.status !== 200){