Add update to RisuRealm feature

This commit is contained in:
kwaroran
2024-03-28 18:04:51 +09:00
parent bce98a84a5
commit 949269e2d6
4 changed files with 32 additions and 11 deletions

View File

@@ -759,7 +759,8 @@ export async function shareRisuHub2(char:character, arg:{
"x-risu-api-version": "4",
"x-risu-token": get(DataBase)?.account?.token,
'x-risu-username': arg.anon ? '' : (get(DataBase)?.account?.id),
'x-risu-debug': 'true'
'x-risu-debug': 'true',
'x-risu-update-id': char.realmId ?? 'null'
}
})
@@ -777,6 +778,7 @@ export async function shareRisuHub2(char:character, arg:{
return
}
currentChar.realmId = resJSON.id
CurrentCharacter.set(currentChar)
}
} catch (error) {
alertError(`${error}`)