Commit 736ab5f3 authored by honghy's avatar honghy Committed by wux

bug282 阿里云英文短信签名缺失

parent a2ad9541
......@@ -164,6 +164,11 @@ public class AliyunSmsClient extends AbstractSmsClient {
// 构建参数
SendSmsRequest request = new SendSmsRequest();
request.setPhoneNumbers(mobile);
if (mobile.startsWith("0086") || mobile.startsWith("86") || mobile.startsWith("+86") || mobile.startsWith("+0086")) {
request.setSignName(properties.getSignature());
} else {
request.setSignName(properties.getSignatureEn());
}
String apiTemplateId = smsTemplateDTO.getApiTemplateId();
request.setSignName(properties.getSignature());
request.setTemplateCode(apiTemplateId);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment