修改获取验证2

This commit is contained in:
wucongxing8150 2024-09-20 16:11:12 +08:00
parent 271b8e393a
commit 6a69688928

View File

@ -43,7 +43,7 @@ func (r *Login) Login(c *gin.Context) {
// 检测参数 // 检测参数
if req.Mobile != "" { if req.Mobile != "" {
// 检测验证码 // 检测验证码
if config.C.Env == "dev" { if config.C.Env != "dev" {
if req.Source == 2 { if req.Source == 2 {
if req.Code == "" { if req.Code == "" {
responses.FailWithMessage("请输入手机号验证码", c) responses.FailWithMessage("请输入手机号验证码", c)