From 075c2a9a88ee2a8f5531ff34562e5ac6847f19bb Mon Sep 17 00:00:00 2001 From: CareyWong Date: Wed, 12 Feb 2020 21:08:40 +0800 Subject: [PATCH] =?UTF-8?q?Fix=EF=BC=9A=E5=91=BD=E4=B8=AD=E7=BC=93?= =?UTF-8?q?=E5=AD=98=E8=BF=94=E5=9B=9E=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 1242983..2928182 100644 --- a/main.go +++ b/main.go @@ -77,7 +77,7 @@ func main() { if 1 == *cache { _shortUrl, err := redisClient.Get(longUrl).Result() if err == nil && _shortUrl != "" { - res.LongUrl = _shortUrl + res.ShortUrl = _shortUrl c.JSON(200, res) return }