|
|
@@ -117,6 +117,13 @@ public class ContentPlatformAccountServiceImpl implements ContentPlatformAccount
|
|
|
|
|
|
@Override
|
|
|
public void sendMessageVerifyCode(AccountSendMessageParam param) {
|
|
|
+ if (!StringUtils.hasText(param.getTelNum())) {
|
|
|
+ throw new CommonException(ExceptionEnum.ACCOUNT_NOT_EXISTS_WRONG);
|
|
|
+ }
|
|
|
+ ContentPlatformAccount account = getAccountByTelNum(param.getTelNum());
|
|
|
+ if (Objects.isNull(account)) {
|
|
|
+ throw new CommonException(ExceptionEnum.ACCOUNT_NOT_EXISTS_WRONG);
|
|
|
+ }
|
|
|
String verifyCode = VerificationCodeGenerator.generateVerificationCode(6);
|
|
|
SendShortMessageUtil.sendVerifyCode(param.getTelNum(), verifyCode);
|
|
|
ContentPlatformVerifyCode verifyCodePO = new ContentPlatformVerifyCode();
|