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