|
|
@ -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);
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|