|
|
|
@ -13,6 +13,7 @@ import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
import java.util.Date;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
@ -39,7 +40,17 @@ public class SmsAdapter {
|
|
|
|
|
dahanWeb.sendSms(iccidList, content);
|
|
|
|
|
} else if (Constants.NetType_Rabchaser.equals(type)) {
|
|
|
|
|
net = "rabchaser";
|
|
|
|
|
rabchaserApi.sendSms(iccidList, content);
|
|
|
|
|
List<String> list = new ArrayList<>();
|
|
|
|
|
for (String iccid : iccidList) {
|
|
|
|
|
list.add(iccid);
|
|
|
|
|
if (list.size() > 9) {
|
|
|
|
|
rabchaserApi.sendSms(list, content);
|
|
|
|
|
list.clear();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (list.size() > 0) {
|
|
|
|
|
rabchaserApi.sendSms(list, content);
|
|
|
|
|
}
|
|
|
|
|
} else if (Constants.NetType_M2M10086.equals(type)) {
|
|
|
|
|
net = "m2m10086";
|
|
|
|
|
m2m10086Web.sendSms(iccidList, content);
|
|
|
|
|