From 10f3d7edd267bcd75fdcd3d90f583da87ad328d6 Mon Sep 17 00:00:00 2001 From: wenc000 <450292408@qq.com> Date: Fri, 28 Aug 2020 18:02:57 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E9=BB=98=E8=AE=A4=E7=9F=AD?= =?UTF-8?q?=E4=BF=A1sign?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/cm/manager/sms/service/impl/SmsServiceImpl.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cloud-manager-sms/src/main/java/com/cm/manager/sms/service/impl/SmsServiceImpl.java b/cloud-manager-sms/src/main/java/com/cm/manager/sms/service/impl/SmsServiceImpl.java index b9f2f5c..72018dd 100644 --- a/cloud-manager-sms/src/main/java/com/cm/manager/sms/service/impl/SmsServiceImpl.java +++ b/cloud-manager-sms/src/main/java/com/cm/manager/sms/service/impl/SmsServiceImpl.java @@ -198,15 +198,16 @@ public class SmsServiceImpl extends AbstractService implements ISmsService { */ private void defaultSms(String phone, String content) throws Exception { SmsDefaultProperties smsDefaultProperties = smsProperties.getDefaultSms(); + StringBuilder contentSB = new StringBuilder(smsDefaultProperties.getSign()).append(content); String url = "https://dx.ipyy.net/sms.aspx?action=send&userid=&account={account}&password={password}&mobile={mobile}&content={content}&sendTime=&extno={extno}"; String[] paramArray = new String[]{ smsDefaultProperties.getAccount(), smsDefaultProperties.getPassword(), phone, - smsDefaultProperties.getSign() + content, + contentSB.toString(), phone }; - sendMessage(url, paramArray, phone, content); + sendMessage(url, paramArray, phone, contentSB.toString()); } /**