Browse Source

超限和重点追踪船舶预警正式发短信

sbj 3 days ago
parent
commit
55ea32ab21

+ 5 - 5
general-controller-service/src/main/java/com/shanghaichengdi/generalcontrollerservice/faced/DataFaced.java

@@ -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});