|
@@ -1037,12 +1037,12 @@ public class DataFaced {
|
|
|
String[] msgContents = new String[]{boatWarning.getBoatName()};
|
|
|
// 将phone添加到defaultWarningPhone数组中
|
|
|
// todo 测试的时候注释下面这行,先不加船舶联系电话
|
|
|
- if(warningType.equals(WarningType.CX) || warningType.equals(WarningType.ZDZZCB)){
|
|
|
- // 这几类预警只给开发发短信,用于测试
|
|
|
- log.info("发送短信给开发");
|
|
|
- }else{
|
|
|
+// if(warningType.equals(WarningType.CX) || warningType.equals(WarningType.ZDZZCB)){
|
|
|
+// // 这几类预警只给开发发短信,用于测试
|
|
|
+// log.info("发送短信给开发");
|
|
|
+// }else{
|
|
|
defaultWarningPhone[defaultWarningPhone.length] = phone;
|
|
|
- }
|
|
|
+// }
|
|
|
|
|
|
String msgContent = getMsgContent(boatWarning, bayonetId, warningType);
|
|
|
String response = SmsUtil.send(smsServiceUrl, defaultWarningPhone, new String[]{msgContent});
|