feat(aklive2d): added id for offical_update.json

This commit is contained in:
Haoyu Xu
2023-11-01 01:03:21 -04:00
parent e77e9be55e
commit f6ac6d600d
2 changed files with 76 additions and 37 deletions

View File

@@ -32,6 +32,8 @@ export default async function () {
}
const rawType = charCard.querySelector(".typeIcon").querySelector("svg").querySelector("use").getAttribute("xlink:href")
const link = "https://ak.hypergryph.com" + charCard.getAttribute("href")
const linkSplited = link.split("/")
const id = linkSplited[linkSplited.length - 1].replace(".html", "")
let type;
switch (rawType) {
@@ -46,7 +48,8 @@ export default async function () {
color,
codename,
type,
link
link,
id
})
dict.length++
}