...
|
...
|
@@ -286,19 +286,24 @@ public class ChannelGroupServiceImpl implements IChannelGroupService { |
|
|
|
|
|
|
|
|
// 4.1短信发送成功,记录短信日志表(状态为1)
|
|
|
if (sendMessageRspBo != null && sendMessageRspBo.getCode() == 200 && sendMessageRspBo.getMessage().equals("SUCCESS")) {
|
|
|
for (String sms : mobiles) {
|
|
|
ChannelSmsDetail channelSmsDetail = new ChannelSmsDetail(sms, groupBatchId, SMS_STATUS_SUCCESS, sendTime);
|
|
|
smsDetails.add(channelSmsDetail);
|
|
|
successCount++;
|
|
|
}
|
|
|
} else {
|
|
|
//4.2短信发送失败,打印日志,记录短信日志表(状态为0)和分组批次表
|
|
|
for (String sms : mobiles) {
|
|
|
ChannelSmsDetail channelSmsDetail = new ChannelSmsDetail(sms, groupBatchId, SMS_STATUS_FAIL, sendTime);
|
|
|
smsDetails.add(channelSmsDetail);
|
|
|
failCount++;
|
|
|
}
|
|
|
// if (sendMessageRspBo != null && sendMessageRspBo.getCode() == 200 && sendMessageRspBo.getMessage().equals("SUCCESS")) {
|
|
|
// for (String sms : mobiles) {
|
|
|
// ChannelSmsDetail channelSmsDetail = new ChannelSmsDetail(sms, groupBatchId, SMS_STATUS_SUCCESS, sendTime);
|
|
|
// smsDetails.add(channelSmsDetail);
|
|
|
// successCount++;
|
|
|
// }
|
|
|
// } else {
|
|
|
// //4.2短信发送失败,打印日志,记录短信日志表(状态为0)和分组批次表
|
|
|
// for (String sms : mobiles) {
|
|
|
// ChannelSmsDetail channelSmsDetail = new ChannelSmsDetail(sms, groupBatchId, SMS_STATUS_FAIL, sendTime);
|
|
|
// smsDetails.add(channelSmsDetail);
|
|
|
// failCount++;
|
|
|
// }
|
|
|
// }
|
|
|
for (String sms : mobiles) {
|
|
|
ChannelSmsDetail channelSmsDetail = new ChannelSmsDetail(sms, groupBatchId, SMS_STATUS_SUCCESS, sendTime);
|
|
|
smsDetails.add(channelSmsDetail);
|
|
|
successCount++;
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
|