diff --git a/luoo_sms/src/main/java/com/luoo/sms/listener/SmsListener.java b/luoo_sms/src/main/java/com/luoo/sms/listener/SmsListener.java index 249ebe2..7b659d2 100644 --- a/luoo_sms/src/main/java/com/luoo/sms/listener/SmsListener.java +++ b/luoo_sms/src/main/java/com/luoo/sms/listener/SmsListener.java @@ -29,10 +29,10 @@ public class SmsListener { String checkcode= map.get("checkcode"); System.out.println("手机号:"+map.get("mobile")); System.out.println("验证码:"+map.get("checkcode")); -// try { -// smsUtils.sendSms(mobile,template_code,sign_name,"{\"checkcode\":\""+checkcode+"\"}"); -// } catch (ClientException e) { -// throw new RuntimeException(e); -// } + try { + smsUtils.sendSms(mobile,template_code,sign_name,"{\"code\":\""+checkcode+"\"}"); + } catch (ClientException e) { + throw new RuntimeException(e); + } } }