|
|
@@ -37,7 +37,8 @@ public class TrainingInstitutionService {
|
|
|
public void batchSend(List<String> phones) throws InterruptedException {
|
|
|
|
|
|
int count = phones.size() / 950;
|
|
|
- String body = "http://wljtest.izouma.com/h5/trainingInstitution";
|
|
|
+ String body = "尊敬的调研对象:\n" +
|
|
|
+ "您好,为贯彻落实国家、省、市关于“双减”工作相关文件精神,了解和掌握我市文化艺术类校外培训机构相关情况,市文旅局决定开展全市文化艺术类校外培训机构网上问卷调查,如从事文化艺术类校外培训,请登录:http://wljtest.izouma.com/h5/trainingInstitution,填写调查问卷,如不从事文化艺术类校外培训,请忽略本条信息,谢谢。\n";
|
|
|
for (int i = 0; i < count; i++) {
|
|
|
int start = i * 950;
|
|
|
int end = start + 950;
|
|
|
@@ -47,7 +48,7 @@ public class TrainingInstitutionService {
|
|
|
List<String> result = phones.subList(start, end);
|
|
|
String sendPhone = String.join(",", result);
|
|
|
System.out.println(sendPhone);
|
|
|
-// njwlSmsService.sendSms(sendPhone, body);
|
|
|
+ njwlSmsService.sendSms(sendPhone, body);
|
|
|
|
|
|
// 睡眠5分钟
|
|
|
Thread.sleep(5 * 60 * 1000);
|