提交 9c932923 authored 作者: 李秋林's avatar 李秋林

取消注册验证码校验

上级 585fdb6b
......@@ -6,7 +6,7 @@ mvn package -DskipTests
docker stop promotion-service-020 && docker rm promotion-service-020
docker rmi promotion-service-020
docker rmi promotion-service:0.2.0
docker build -t promotion-service:0.2.0 .
......
......@@ -55,14 +55,14 @@ public class TemporaryInfoCoreController {
/**
* 手机号-验证码 校验
*/
if (envUtil.isLive()) {
String redisKey = RedisKeys.UserKeys.PHONE_VER_CODE.getKey() + wxTemporaryEnrollVo.getPhone();
String phoneCodeOld = redisCache.get(redisKey);
if (StringUtils.isBlank(phoneCodeOld) || !phoneCodeOld.equals(wxTemporaryEnrollVo.getPhoneCode())) {
throw new ParamException(RCode.TENCENT_SMS_PHONE_CODE_ERROR, null);
}
redisCache.removeKey(redisKey);
}
// if (envUtil.isLive()) {
// String redisKey = RedisKeys.UserKeys.PHONE_VER_CODE.getKey() + wxTemporaryEnrollVo.getPhone();
// String phoneCodeOld = redisCache.get(redisKey);
// if (StringUtils.isBlank(phoneCodeOld) || !phoneCodeOld.equals(wxTemporaryEnrollVo.getPhoneCode())) {
// throw new ParamException(RCode.TENCENT_SMS_PHONE_CODE_ERROR, null);
// }
// redisCache.removeKey(redisKey);
// }
WxTemporaryInfoDto temporaryDto = new WxTemporaryInfoDto();
BeanUtils.copyProperties(wxTemporaryEnrollVo, temporaryDto);
......
......@@ -106,9 +106,9 @@ public class WxTemporaryEnrollVo {
throw new ParamException(RCode.PHONE_PARAM_ERROR, null);
}
if (StringUtils.isBlank(phoneCode)) {
throw new ParamException(RCode.TENCENT_SMS_PHONE_CODE_ERROR, null);
}
// if (StringUtils.isBlank(phoneCode)) {
// throw new ParamException(RCode.TENCENT_SMS_PHONE_CODE_ERROR, null);
// }
// if (StringUtils.isBlank(idenNumber)) {
// throw new ParamException(RCode.IDEN_NUMBER_PARAM_ERROR, null);
......
......@@ -34,7 +34,7 @@ class WeChatUserCoreControllerTest {
.setIdenNumber("身份证号")
.setIdenFrontPhotoUrl("身份证正面照")
.setIdenReversePhotoUrl("身份证反面照")
.setPhoneCode("手机验证码")
// .setPhoneCode("手机验证码")
;
System.out.println(JSONObject.toJSONString(vo));
// weChatUserCoreController.enrollUserInfo(vo);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论