Skip to content

Commit

Permalink
皮肤资源更新
Browse files Browse the repository at this point in the history
  • Loading branch information
IJNKAWAKAZE committed Aug 3, 2024
1 parent aa00d16 commit cdaebfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/datasource/update_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func UpdateDataSourceRunner() {
response, _ = http.Get(api + "时装回廊")
doc, _ = goquery.NewDocumentFromReader(response.Body)
doc.Find(".skinwrapper").Each(func(i int, selection *goquery.Selection) {
img, _ := url.QueryUnescape(selection.Find(".charimg").First().Nodes[0].FirstChild.Attr[0].Val)
img, _ := url.QueryUnescape(selection.Find(".charimg").First().Nodes[0].FirstChild.Attr[1].Val)
skinName := selection.Find(".charnameEn").Text()
compileRegex := regexp.MustCompile("_(.*?)_")
match := compileRegex.FindStringSubmatch(img)
Expand Down

0 comments on commit cdaebfa

Please sign in to comment.