fix(back) remake file
This commit is contained in:
1 parent
aeee027612
commit
814b93621d
11 files changed
+40
-19
No files matched your search
@@ -26,7 +26,7 @@ func GetItem(c *gin.Context) {
|
||||
if item.AvatarURL != "" {
|
||||
item.AvatarURL = fmt.Sprintf("/static/items/%s", item.AvatarURL)
|
||||
} else {
|
||||
item.AvatarURL = fmt.Sprintf("/static/items/background.png")
|
||||
item.AvatarURL = fmt.Sprintf("/static/items/background.jpg")
|
||||
}
|
||||
|
||||
c.JSON(http.StatusOK, item)
|
||||
@@ -44,7 +44,7 @@ func GetAllItems(c *gin.Context) {
|
||||
if items[i].AvatarURL != "" {
|
||||
items[i].AvatarURL = fmt.Sprintf("/static/items/%s", items[i].AvatarURL)
|
||||
} else {
|
||||
items[i].AvatarURL = fmt.Sprintf("/static/items/background.png")
|
||||
items[i].AvatarURL = fmt.Sprintf("/static/items/background.jpg")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user