安徽省公司短信平台

This commit is contained in:
sxu 2025-05-07 17:11:30 +08:00
parent db20e6514c
commit 3bc6e80c1c
2 changed files with 0 additions and 2 deletions

View File

@ -40,7 +40,6 @@ public class SmsService {
String code = VerificationCodeUtils.generateVerificationCode(NUMERIC);
String str = verificationCodeConfig.getContent().replace("<code>", code);
str = str.replace("<time>", verificationCodeConfig.getTime().toString());
//String s = SmsUtils.smsToken(to, str, "");
String s = SmsUtils.sendMsgToSms(Arrays.asList(to), str);
log.error("省公司短信平台发送短信返回结果=" + s);
if (StringUtils.isNotEmpty(s)) {

View File

@ -108,7 +108,6 @@ public class SysPasswordService {
String code = VerificationCodeUtils.generateVerificationCode(VerificationCodeUtils.CodeType.NUMERIC);
String str = "您的验证码为" + code + "尊敬的客户以上验证码3分钟有效微服务平台提醒您转发可能导致账号被盗请勿将验证码泄露于他人";
String verifyKey = CacheConstants.VERIFICATION_CODE + phone;
//String s = SmsUtils.smsToken(phone, str, "");
String s = SmsUtils.sendMsgToSms(Arrays.asList(phone), str);
if (StringUtils.isNotEmpty(s)) {
if (s.contains("ok")) {