forked from tcp.direct/tcp.ac
1
0
Fork 0

yung RETARD

This commit is contained in:
kayos@tcp.direct 2021-01-07 20:37:26 -08:00
parent 31919efcf0
commit 8995640a95

5
img.go
View File

@ -26,7 +26,7 @@ type Post struct {
func postUpload(c *gin.Context, id string, key string) {
imgurl := baseUrl + "i/" + string(id)
keyurl := "image_is_duplicate"
keyurl := "duplicate"
if key != "nil" { keyurl = baseUrl + "d/i/" + string(key) }
d := Post{
@ -34,7 +34,6 @@ func postUpload(c *gin.Context, id string, key string) {
Delkey: keyurl,
}
var p []byte
p, err := json.Marshal(d)
if err != nil {
@ -43,7 +42,7 @@ func postUpload(c *gin.Context, id string, key string) {
}
fmt.Println("[imgPost]["+id+"] Success: " + imgurl + " " + keyurl)
c.JSON(200, string(p))
c.JSON(201, string(p))
return
}