修改发送验证码的key与阿里云中模板配置的CODE的KEY保持一致

main
wangqing 11 months ago
parent 444ff311d8
commit 85435785be

@ -29,10 +29,10 @@ public class SmsListener {
String checkcode= map.get("checkcode"); String checkcode= map.get("checkcode");
System.out.println("手机号:"+map.get("mobile")); System.out.println("手机号:"+map.get("mobile"));
System.out.println("验证码:"+map.get("checkcode")); System.out.println("验证码:"+map.get("checkcode"));
// try { try {
// smsUtils.sendSms(mobile,template_code,sign_name,"{\"checkcode\":\""+checkcode+"\"}"); smsUtils.sendSms(mobile,template_code,sign_name,"{\"code\":\""+checkcode+"\"}");
// } catch (ClientException e) { } catch (ClientException e) {
// throw new RuntimeException(e); throw new RuntimeException(e);
// } }
} }
} }

Loading…
Cancel
Save