Skip to content

Commit

Permalink
材料资源地址修改
Browse files Browse the repository at this point in the history
  • Loading branch information
IJNKAWAKAZE committed Jun 25, 2024
1 parent 50ece3d commit 9d0ce52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/datasource/update_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ func MaterialInfo() {
material.Name = item.Get("itemName").String()
paintingName := fmt.Sprintf("道具_%s.png", material.Name)
m := utils.Md5(paintingName)
path := "https://prts.wiki" + fmt.Sprintf("/images/thumb/%s/%s/", m[:1], m[:2])
path := "https://media.prts.wiki" + fmt.Sprintf("/thumb/%s/%s/", m[:1], m[:2])
pic := path + paintingName + "/75px-" + paintingName
material.Icon = pic
material.ApExpect = fmt.Sprintf("%.1f", item.Get("apExpect").Float())
Expand All @@ -256,7 +256,7 @@ func MaterialInfo() {
if material.SecondaryItem != "" {
paintingName := fmt.Sprintf("道具_%s.png", material.SecondaryItem)
m := utils.Md5(paintingName)
path := "https://prts.wiki" + fmt.Sprintf("/images/thumb/%s/%s/", m[:1], m[:2])
path := "https://media.prts.wiki" + fmt.Sprintf("/thumb/%s/%s/", m[:1], m[:2])
pic := path + paintingName + "/75px-" + paintingName
material.SecondaryItemIcon = pic
}
Expand Down

0 comments on commit 9d0ce52

Please sign in to comment.