From 6ab136340a910d3093d72d50577cb499c2b13d6d Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Fri, 13 Dec 2024 20:14:25 +0800 Subject: [PATCH] =?UTF-8?q?h5=E6=B3=A8=E5=86=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/hdl/hdl_login.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/hdl/hdl_login.go b/app/hdl/hdl_login.go index 6ffb5b5..aadecd0 100644 --- a/app/hdl/hdl_login.go +++ b/app/hdl/hdl_login.go @@ -55,6 +55,16 @@ func SmsSend(c *gin.Context) { return } } + if req.Type == "h5Register" { + user, _ := userDb.UserGetOneByParams(map[string]interface{}{ + "key": "phone", + "value": req.Mobile, + }) + if user != nil { + e.OutErr(c, 400, e.NewErr(400, "您已注册过,请前往下载APP")) + return + } + } param := map[string]string{ "lot_number": req.LotNumber, "gen_time": req.GenTime,