From 85435785be3f63239908a2ece03ec7aa70680545 Mon Sep 17 00:00:00 2001 From: wangqing <408564126@qq.com> Date: Wed, 10 Jan 2024 09:12:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8F=91=E9=80=81=E9=AA=8C?= =?UTF-8?q?=E8=AF=81=E7=A0=81=E7=9A=84key=E4=B8=8E=E9=98=BF=E9=87=8C?= =?UTF-8?q?=E4=BA=91=E4=B8=AD=E6=A8=A1=E6=9D=BF=E9=85=8D=E7=BD=AE=E7=9A=84?= =?UTF-8?q?CODE=E7=9A=84KEY=E4=BF=9D=E6=8C=81=E4=B8=80=E8=87=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/luoo/sms/listener/SmsListener.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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); + } } }