安徽省公司短信平台
This commit is contained in:
parent
db20e6514c
commit
3bc6e80c1c
|
|
@ -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)) {
|
||||
|
|
|
|||
|
|
@ -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")) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue