From 20362a4efeb06b78174e7405823d987ee768b453 Mon Sep 17 00:00:00 2001 From: gazebo Date: Mon, 12 Aug 2019 15:03:47 +0800 Subject: [PATCH] =?UTF-8?q?-=20auth=E4=B8=AD=E4=B8=8D=E7=AE=A1=E9=AA=8C?= =?UTF-8?q?=E8=AF=81=E7=A0=81=E6=98=AF=E5=90=A6=E5=8F=91=E9=80=81=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=E9=83=BD=E4=BF=9D=E5=AD=98=E5=9C=A8cache=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxcallback/auth/mobile/mobile.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/business/jxcallback/auth/mobile/mobile.go b/business/jxcallback/auth/mobile/mobile.go index 7b0d90bc7..7130c793e 100644 --- a/business/jxcallback/auth/mobile/mobile.go +++ b/business/jxcallback/auth/mobile/mobile.go @@ -57,8 +57,8 @@ func SendVerifyCode(mobileNumber string) error { response, err := smsClient.Execute(globals.AliKey, globals.AliSecret, mobileNumber, "京西菜市", "SMS_84655036", string(utils.MustMarshal(map[string]interface{}{ "code": code, }))) + api.Cacher.Set(mobileNumber, code, DefVerifyCodeDuration) if err == nil && response.Code == aliyunsmsclient.ResponseCodeOk { - api.Cacher.Set(mobileNumber, code, DefVerifyCodeDuration) } else { if err == nil { if warningMap[response.Code] == 1 {