|
|
@@ -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); |
|
|
|