|
@@ -76,9 +76,11 @@ public class BootNettyChannelInboundHandlerAdapter extends ChannelInboundHandler
|
76
|
76
|
if (msg == null) {
|
77
|
77
|
return;
|
78
|
78
|
}
|
79
|
|
- log.info("=============" + (new java.text.SimpleDateFormat("yyyy-MM-dd HH:mm:ss")).format(new Date()) + "=============");
|
80
|
79
|
String message = msg.toString();
|
81
|
|
- log.info("收到数据:" + message);
|
|
80
|
+ if (message.contains(Constant.MINUTE_STR) || message.contains(Constant.HOUR_STR)) {
|
|
81
|
+ log.info("=============" + (new java.text.SimpleDateFormat("yyyy-MM-dd HH:mm:ss")).format(new Date()) + "=============");
|
|
82
|
+ log.info("收到数据:" + message);
|
|
83
|
+ }
|
82
|
84
|
if (message.contains("&&")) {
|
83
|
85
|
String[] split = message.split("&&");
|
84
|
86
|
if (split.length == 3) {
|