Skip to content

Commit

Permalink
[Fix] 🐛 BingAPI Image URL Return Error
Browse files Browse the repository at this point in the history
  • Loading branch information
Harry-zklcdc committed Apr 16, 2024
1 parent 05d2a28 commit 94a3cc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/api/v1/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func ImageHandler(w http.ResponseWriter, r *http.Request) {

for _, img := range imgs {
resp.Data = append(resp.Data, imageData{
Url: img,
Url: strings.Replace(img, "http://localhost:"+common.PORT+"/th", common.BING_SOURCE_URL.String(), 1),
})
}

Expand Down

0 comments on commit 94a3cc6

Please sign in to comment.