From df8970f59b244c82aea9ccee7d70f3ddeed784c6 Mon Sep 17 00:00:00 2001 From: Gordon <1432970085@qq.com> Date: Fri, 11 Feb 2022 19:06:29 +0800 Subject: [PATCH] demo modify --- internal/demo/register/send_code.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/demo/register/send_code.go b/internal/demo/register/send_code.go index 9089b9c78..5d6e3e20f 100644 --- a/internal/demo/register/send_code.go +++ b/internal/demo/register/send_code.go @@ -52,7 +52,7 @@ func SendVerificationCode(c *gin.Context) { rand.Seed(time.Now().UnixNano()) code := 100000 + rand.Intn(900000) log.NewInfo(params.OperationID, "begin store redis", account) - err = db.DB.SetAccountCode(account, code, config.Config.Demo.SuperCodeTTL) + err = db.DB.SetAccountCode(account, code, config.Config.Demo.CodeTTL) if err != nil { log.NewError(params.OperationID, "set redis error", account, "err", err.Error()) c.JSON(http.StatusOK, gin.H{"errCode": constant.SmsSendCodeErr, "errMsg": "Enter the superCode directly in the verification code box, SuperCode can be configured in config.xml"})