forked from tcp.direct/tcp.ac
yung RETARD
This commit is contained in:
parent
31919efcf0
commit
8995640a95
5
img.go
5
img.go
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue