Skip to content

Commit

Permalink
干员技能图片资源修复
Browse files Browse the repository at this point in the history
  • Loading branch information
IJNKAWAKAZE committed Apr 1, 2024
1 parent dd4e0a2 commit 79d71cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/operator/parse_operator.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ func ParseOperator(name string) Operator {
selection.Find("tr").Eq(0).Find("td").Each(func(k int, selection *goquery.Selection) {
if k == 0 {
icon, _ := selection.Children().Children().Children().Attr("data-src")
skill.Icon = "https://prts.wiki" + icon
skill.Icon = icon
}
if k == 1 {
skill.Name = strings.ReplaceAll(selection.Text(), "\n", "")
Expand Down

0 comments on commit 79d71cd

Please sign in to comment.