Commit 21bc807473315a618297d8d3bf8c210b26d78396

Authored by aarongao
1 parent 1ba7e434
Exists in v1.2 and in 2 other branches master, v1.1

验证钟

Showing 2 changed files with 3 additions and 3 deletions   Show diff stats
@@ -16,7 +16,7 @@ import ( @@ -16,7 +16,7 @@ import (
16 // @Produce json 16 // @Produce json
17 // @Param Mobile 18616619599 string true "手机号" 17 // @Param Mobile 18616619599 string true "手机号"
18 // @Param Location {"Latitude": 119, "Longitude": 39} string true "位置" 18 // @Param Location {"Latitude": 119, "Longitude": 39} string true "位置"
19 -// @Success 200 {object} tools.ResponseSeccess "{"errcode":0,"result":"ok"}验证码3分钟内有效" 19 +// @Success 200 {object} tools.ResponseSeccess "{"errcode":0,"result":"ok"}验证码1分钟内有效"
20 // @Failure 500 {object} tools.ResponseError "{"errcode":1,"errmsg":"错误原因"}" 20 // @Failure 500 {object} tools.ResponseError "{"errcode":1,"errmsg":"错误原因"}"
21 // @Router /Sms/Send? [post] 21 // @Router /Sms/Send? [post]
22 func Send(c *gin.Context) { 22 func Send(c *gin.Context) {
@@ -67,7 +67,7 @@ func Send(c *gin.Context) { @@ -67,7 +67,7 @@ func Send(c *gin.Context) {
67 } else { 67 } else {
68 reserr = response.Code 68 reserr = response.Code
69 if response.Code == "OK" { 69 if response.Code == "OK" {
70 - DB.Redis.Set(c.PostForm("Mobile"), code, time.Second*60*3) 70 + DB.Redis.Set(c.PostForm("Mobile"), code, time.Second*60)
71 } 71 }
72 } 72 }
73 73
@@ -316,7 +316,7 @@ @@ -316,7 +316,7 @@
316 316
317 | Code | Type | Model | Message | 317 | Code | Type | Model | Message |
318 |-----|-----|-----|-----| 318 |-----|-----|-----|-----|
319 -| 200 | object | [ResponseSeccess](#github.com.aarongao.tools.ResponseSeccess) | {"errcode":0,"result":"ok"}验证码3分钟内有效 | 319 +| 200 | object | [ResponseSeccess](#github.com.aarongao.tools.ResponseSeccess) | {"errcode":0,"result":"ok"}验证码1分钟内有效 |
320 | 500 | object | [ResponseError](#github.com.aarongao.tools.ResponseError) | {"errcode":1,"errmsg":"错误原因"} | 320 | 500 | object | [ResponseError](#github.com.aarongao.tools.ResponseError) | {"errcode":1,"errmsg":"错误原因"} |
321 321
322 322