feat(aklive2d): added id for offical_update.json
This commit is contained in:
@@ -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++
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user