Browse Source

uypdate

master
dengbiao 1 day ago
parent
commit
3a9dbd537e
1 changed files with 7 additions and 7 deletions
  1. +7
    -7
      app/hdl/hdl_login.go

+ 7
- 7
app/hdl/hdl_login.go View File

@@ -225,13 +225,13 @@ func Register(c *gin.Context) {
e.OutErr(c, err1.Code, err1.Error()) e.OutErr(c, err1.Code, err1.Error())
return 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) commReq(c, req)
} }




Loading…
Cancel
Save