Explorar el Código

GetPhoneVFCode

lhs hace 5 años
padre
commit
78cf418fbf
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      controller/auth.go

+ 3 - 1
controller/auth.go

@@ -80,16 +80,18 @@ func (a *Auth) GenVerifyPic() (err error) {
 // @Description 手机获取验证码
 // @Accept  x-www-form-urlencoded
 // @Produce  json
+// @Param picCode formData string true "图形验证码,目前不起作用"
 // @Param phone formData string true "手机号"
 // @Param codeType formData int true "验证码类型 1:登录"
 // @Success 200 {object} controller.ResponseBase
 // @Router /Auth/GetPhoneVFCode [post]
 func (a *Auth) GetPhoneVFCode() (err error) {
+	picCode := a.Ctx().PostForm("picCode")
 	phone := a.postString("phone", true)
 	codeType := a.postIntNecessary("codeType")
 	//picId := a.Ctx().PostForm("picId")
 	//picCode := a.Ctx().PostForm("picCode")
-	err = service.Auth{}.GenVFCode(codeType, phone, a.getIp())
+	err = service.Auth{}.GenVFCode(codeType, phone, a.getIp(), picCode)
 	if err != nil {
 		return
 	}