From 45efa9442e123532efe5f4b783f7b6bf3ccf257d Mon Sep 17 00:00:00 2001 From: gaojuan1 Date: Fri, 25 Apr 2025 16:53:14 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9F=AD=E4=BF=A1=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../groovy/com/fangjia/script/jms/SMSOutgoingListener.groovy | 4 ++-- .../com/fangjia/script/jms/aliyun/AliyunSmsClient.groovy | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/projects/fangjia-script/src/main/groovy/com/fangjia/script/jms/SMSOutgoingListener.groovy b/projects/fangjia-script/src/main/groovy/com/fangjia/script/jms/SMSOutgoingListener.groovy index 94aa4c948..32b03f995 100644 --- a/projects/fangjia-script/src/main/groovy/com/fangjia/script/jms/SMSOutgoingListener.groovy +++ b/projects/fangjia-script/src/main/groovy/com/fangjia/script/jms/SMSOutgoingListener.groovy @@ -166,7 +166,7 @@ class SMSOutgoingListener extends BaseBatch { def mobile = msg.getObject().mobile String content = msg.getObject().msgContent.trim() - content = content.replace("【房价网】", "【上海估家】") + content = content.replace("【房价网】", "【上海估家网络科技】") if(!content.startsWith("【")){ content = "【上海估家】" + content; } @@ -305,7 +305,7 @@ class SMSOutgoingListener extends BaseBatch { JSONObject con = new JSONObject() con.put("code", checkCode); println("mobile:"+mobile+" code:"+checkCode) - return AliyunSmsClient.sendSms(mobile, "SMS_483925328", con.toString()) + return AliyunSmsClient.sendSms(mobile, "SMS_485015075", con.toString()) } } int resCode = SingletonClient.getClient().sendSMS([mobile] as String[],content, 5) diff --git a/projects/fangjia-script/src/main/groovy/com/fangjia/script/jms/aliyun/AliyunSmsClient.groovy b/projects/fangjia-script/src/main/groovy/com/fangjia/script/jms/aliyun/AliyunSmsClient.groovy index 6e2acda2c..6c99e17d1 100644 --- a/projects/fangjia-script/src/main/groovy/com/fangjia/script/jms/aliyun/AliyunSmsClient.groovy +++ b/projects/fangjia-script/src/main/groovy/com/fangjia/script/jms/aliyun/AliyunSmsClient.groovy @@ -39,7 +39,7 @@ class AliyunSmsClient { //必填:待发送手机号。支持以逗号分隔的形式进行批量调用,批量上限为1000个手机号码,批量调用相对于单条调用及时性稍有延迟,验证码类型的短信推荐使用单条调用的方式;发送国际/港澳台消息时,接收号码格式为00+国际区号+号码,如“0085200000000” request.setPhoneNumbers(phoneNumber) //必填:短信签名-可在短信控制台中找到 - request.setSignName("上海估家") + request.setSignName("上海估家网络科技") //必填:短信模板-可在短信控制台中找到 request.setTemplateCode(templateCode); //可选:模板中的变量替换JSON串,如模板内容为"亲爱的${name},您的验证码为${code}"时,此处的值为 @@ -52,7 +52,7 @@ class AliyunSmsClient { } public static void main(String[] args) { - sendSms("13061966193", "SMS_483925328", '{"code":5555}') + sendSms("15021384995", "SMS_485015075", '{"code":6666}') }