Browse Source

h5注册

tmp
huangjiajun 1 week ago
parent
commit
6ab136340a
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      app/hdl/hdl_login.go

+ 10
- 0
app/hdl/hdl_login.go View File

@@ -55,6 +55,16 @@ func SmsSend(c *gin.Context) {
return 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{ param := map[string]string{
"lot_number": req.LotNumber, "lot_number": req.LotNumber,
"gen_time": req.GenTime, "gen_time": req.GenTime,


Loading…
Cancel
Save