调整默认短信sign

This commit is contained in:
wenc000 2020-08-28 18:02:57 +08:00
parent d11d263ccc
commit 10f3d7edd2

View File

@ -198,15 +198,16 @@ public class SmsServiceImpl extends AbstractService implements ISmsService {
*/ */
private void defaultSms(String phone, String content) throws Exception { private void defaultSms(String phone, String content) throws Exception {
SmsDefaultProperties smsDefaultProperties = smsProperties.getDefaultSms(); 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 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[]{ String[] paramArray = new String[]{
smsDefaultProperties.getAccount(), smsDefaultProperties.getAccount(),
smsDefaultProperties.getPassword(), smsDefaultProperties.getPassword(),
phone, phone,
smsDefaultProperties.getSign() + content, contentSB.toString(),
phone phone
}; };
sendMessage(url, paramArray, phone, content); sendMessage(url, paramArray, phone, contentSB.toString());
} }
/** /**