|
|
@@ -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, |
|
|
|