|
@@ -349,7 +349,7 @@ public class SendSmsServiceImpl implements ISendSmsService {
|
|
|
int maxNums = 100; //每次最多发送100条,我们一次批量发100条
|
|
|
int times = 0;// 循环几个100 用List的长度 除 100
|
|
|
int size = 0; //
|
|
|
-
|
|
|
+ String templateCode = smsList.get(0).getTemplateCode();
|
|
|
List<String> phoneList = new ArrayList<>();
|
|
|
List<String> signNameList = new ArrayList<>();
|
|
|
StringBuffer signNameJson;
|
|
@@ -397,7 +397,7 @@ public class SendSmsServiceImpl implements ISendSmsService {
|
|
|
//签名名称
|
|
|
sendBatchSmsRequest.setSignNameJson(signNameList.get(i));
|
|
|
//固定的模板名称
|
|
|
- sendBatchSmsRequest.setTemplateCode(TEMPLATE_CODE_NOTICE);
|
|
|
+ sendBatchSmsRequest.setTemplateCode(templateCode);
|
|
|
long endTimeSql = System.currentTimeMillis() - startTimeSql;
|
|
|
System.out.println("执行批量下发短信通知计算:"+i+"次,时间" + endTimeSql + "ms");
|
|
|
long startTimeSend = System.currentTimeMillis();
|