From cfd058531ac72f728028f141102ddb9743a8568f Mon Sep 17 00:00:00 2001
From: lizhanwei <Dana_Lee1016@126.com>
Date: 星期六, 14 三月 2020 21:31:03 +0800
Subject: [PATCH] 如果设备未登录则不发送心跳消息和位置消息等其他一切消息(不包括注册和鉴权消息);鉴权时间戳修改为秒,然后des加密进行发送;0206位置消息,再收到rtk_info的时候进行控制发送,如果移到MessageProcesser app崩溃,MessageManager.get()抛异常动态长度字段和依赖字段只能有一个,暂时先不改,后边有时间再改

---
 im_lib/src/main/java/com/anyun/im_lib/netty/NettyTcpClient.java |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/im_lib/src/main/java/com/anyun/im_lib/netty/NettyTcpClient.java b/im_lib/src/main/java/com/anyun/im_lib/netty/NettyTcpClient.java
index 8c9d9d4..17ed3bf 100644
--- a/im_lib/src/main/java/com/anyun/im_lib/netty/NettyTcpClient.java
+++ b/im_lib/src/main/java/com/anyun/im_lib/netty/NettyTcpClient.java
@@ -428,6 +428,14 @@
         _addHeartbeatHandler();
     }
 
+    @Override
+    public boolean isLogin() {
+        if (mOnEventListener != null){
+            return mOnEventListener.isLogin();
+        }
+        return false;
+    }
+
     public int getHeartbeatInterval() {
         return this.heartBeatInterval;
     }

--
Gitblit v1.8.0