fix: allow clerk apply without sms verification
Some checks failed
Build and Push Backend / docker (push) Failing after 5s

This commit is contained in:
irving
2025-10-26 12:21:25 -04:00
parent 0356834b88
commit 5a116eedf6
3 changed files with 23 additions and 4 deletions

View File

@@ -234,7 +234,9 @@ public class WxClerkController {
if (entity != null) {
throw new CustomException("已有申请未审核");
}
smsUtils.checkSmsCode(vo.getPhone(), vo.getSmsCode());
if (StringUtils.isNotEmpty(vo.getPhone()) && StringUtils.isNotEmpty(vo.getSmsCode())) {
smsUtils.checkSmsCode(vo.getPhone(), vo.getSmsCode());
}
entity = ConvertUtil.entityToVo(vo, PlayClerkUserReviewInfoEntity.class);
entity.setReviewState("0");

View File

@@ -44,13 +44,11 @@ public class PlayClerkUserByWxAddVo {
/**
* 手机号码区号
*/
@NotBlank(message = "手机号码区号不能为空")
private String areaCode;
/**
* 手机号码
*/
@NotBlank(message = "手机号码不能为空")
private String phone;
/**