소스 검색

删除日志

wangshan 4 달 전
부모
커밋
876c3df6e6
1개의 변경된 파일2개의 추가작업 그리고 5개의 파일을 삭제
  1. 2 5
      src/jfw/modules/subscribepay/src/service/userAccountInfo.go

+ 2 - 5
src/jfw/modules/subscribepay/src/service/userAccountInfo.go

@@ -607,7 +607,6 @@ func (this *UserAccount) PhoneBind() {
 			err         error
 		)
 		captchaKey := this.GetString("captchaKey") //图形验证码key
-		log.Println("captchaKey:", captchaKey)
 		if captchaKey != "" {
 			if strings.TrimSpace(phone) == "" {
 				return nil, fmt.Errorf("手机号异常")
@@ -616,10 +615,8 @@ func (this *UserAccount) PhoneBind() {
 				return nil, fmt.Errorf("已绑定手机号,请勿重复绑定")
 			}
 			identCode := this.GetString("identCode") //短信验证码
-			log.Println("identCode:", identCode)
-			captchaPhone := jy.CheckPhoneIdent(this.Session(), identCode, fmt.Sprintf(jycaptcha.SendCodeKey, captchaKey, phone))
-			log.Println("captchaPhone:", captchaPhone)
-			if phone != captchaPhone { //验证码不正确
+			phoneVerify = jy.CheckPhoneIdent(this.Session(), identCode, fmt.Sprintf(jycaptcha.SendCodeKey, captchaKey, phone))
+			if phone != phoneVerify { //验证码不正确
 				return nil, fmt.Errorf("验证码错误")
 			}
 		} else {