调整默认短信sign
This commit is contained in:
parent
d11d263ccc
commit
10f3d7edd2
@ -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());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user