From 3a9dbd537ec22895a149f68735ca589223106ace Mon Sep 17 00:00:00 2001 From: dengbiao Date: Fri, 22 Nov 2024 22:36:55 +0800 Subject: [PATCH] uypdate --- app/hdl/hdl_login.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/app/hdl/hdl_login.go b/app/hdl/hdl_login.go index 66f2104..21f1acf 100644 --- a/app/hdl/hdl_login.go +++ b/app/hdl/hdl_login.go @@ -225,13 +225,13 @@ func Register(c *gin.Context) { e.OutErr(c, err1.Code, err1.Error()) return } - //data := svc.AliyunSmsBase(c, "") - ////校验短信 - //err = aliyun.AliyunCheckSms(data["aliyun_sms_id"], data["aliyun_sms_secret"], req.Mobile, req.Code) - //if err != nil { - // e.OutErr(c, 400, e.NewErr(400, "验证码错误,请重试")) - // return - //} + data := svc.AliyunSmsBase(c, "") + //校验短信 + err = aliyun.AliyunCheckSms(data["aliyun_sms_id"], data["aliyun_sms_secret"], req.Mobile, req.Code) + if err != nil { + e.OutErr(c, 400, e.NewErr(400, "验证码错误,请重试")) + return + } commReq(c, req) }