|
@@ -5,6 +5,7 @@ import (
|
|
|
"git.qianqiusoft.com/qianqiusoft/light-apiengine/entitys"
|
|
"git.qianqiusoft.com/qianqiusoft/light-apiengine/entitys"
|
|
|
"git.qianqiusoft.com/qianqiusoft/light-apiengine/utils"
|
|
"git.qianqiusoft.com/qianqiusoft/light-apiengine/utils"
|
|
|
"strconv"
|
|
"strconv"
|
|
|
|
|
+ "fmt"
|
|
|
)
|
|
)
|
|
|
|
|
|
|
|
// _Image
|
|
// _Image
|
|
@@ -41,11 +42,15 @@ func Captcha_Image(c *entitys.CtrlContext) {
|
|
|
// @Failure 403 :id is empty
|
|
// @Failure 403 :id is empty
|
|
|
func Captcha_Sms(c *entitys.CtrlContext) {
|
|
func Captcha_Sms(c *entitys.CtrlContext) {
|
|
|
mobile := c.Ctx.Query("mobile")
|
|
mobile := c.Ctx.Query("mobile")
|
|
|
|
|
+
|
|
|
|
|
+ fmt.Println("--------------> get mobile", mobile)
|
|
|
|
|
|
|
|
if mobile == "" {
|
|
if mobile == "" {
|
|
|
c.Ctx.JSON(500, sysmodel.SysReturn{500, "mobile is cannot empty", nil})
|
|
c.Ctx.JSON(500, sysmodel.SysReturn{500, "mobile is cannot empty", nil})
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ fmt.Println("--------------> utils.SendSmsCaptcha", mobile)
|
|
|
|
|
|
|
|
data, err := utils.SendSmsCaptcha(mobile)
|
|
data, err := utils.SendSmsCaptcha(mobile)
|
|
|
if err == nil {
|
|
if err == nil {
|