|
|
@@ -51,7 +51,7 @@ public class SendSms {
|
|
|
private static String templateId2 = "2065770"; //预约短信
|
|
|
|
|
|
//验证码有效时长
|
|
|
- private static String smsMin = "1";
|
|
|
+ private static String smsMin = "5";
|
|
|
|
|
|
|
|
|
public static String sendSms(String phoneNumber, String code) {
|
|
|
@@ -125,7 +125,7 @@ public class SendSms {
|
|
|
/* 模板参数: 模板参数的个数需要与 TemplateId 对应模板的变量个数保持一致,若无模板参数,则设置为空 */
|
|
|
// 第一个为验证码,第二个为有效时间
|
|
|
// String[] templateParamSet = {code,smsConfig.getSmsMin()};
|
|
|
- String[] templateParamSet = {code, "1"};
|
|
|
+ String[] templateParamSet = {code, "5"};
|
|
|
req.setTemplateParamSet(templateParamSet);
|
|
|
|
|
|
/* 下发手机号码,采用 E.164 标准,+[国家或地区码][手机号]
|