Ver código fonte

社会专家报名验证码校验参数化

tags/24080901
WendyYang 1 ano atrás
pai
commit
71e1421fc6
2 arquivos alterados com 9 adições e 1 exclusões
  1. +5
    -1
      pmapi/src/main/java/com/ningdatech/pmapi/expert/manage/ExpertManage.java
  2. +4
    -0
      pmapi/src/main/resources/application-dev.yml

+ 5
- 1
pmapi/src/main/java/com/ningdatech/pmapi/expert/manage/ExpertManage.java Ver arquivo

@@ -44,6 +44,7 @@ import com.ningdatech.pmapi.user.util.LoginUserUtil;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.collections4.CollectionUtils;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;
@@ -80,6 +81,9 @@ public class ExpertManage {
private final VerifyCodeCheckHelper verifyCodeCheckHelper;
private final CachePlusOps cachePlusOps;

@Value("${expert-registration.verify-code.check:true}")
private Boolean expertRegistrationVerifyCodeCheck;

private static final Duration REGISTER_EXPIRED_DURATION = Duration.ofDays(3);
private static final Duration REGISTER_GEN_DURATION = Duration.ofMinutes(30);

@@ -225,7 +229,7 @@ public class ExpertManage {
String verificationCode = request.getVerificationCode();
String phoneNo = request.getBasicInfo().getPhoneNo();
//校验 专家验证码
if (false) {
if (expertRegistrationVerifyCodeCheck) {
verifyCodeCheckHelper.verification(VerificationCodeType.EXPERT_REGISTER, phoneNo, verificationCode);
}
assemblerAndGenerateExpert(request, null);


+ 4
- 0
pmapi/src/main/resources/application-dev.yml Ver arquivo

@@ -240,5 +240,9 @@ login:
url: http://lspm.ningdatech.com/login
web:
url: http://lspm.ningdatech.com
# 专家报名验证码校验
expert-registration:
verify-code:
check: false



Carregando…
Cancelar
Salvar