调整默认短信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 {
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());
}
/**