From e04a10081655911e65a93ac864051747a19a2d99 Mon Sep 17 00:00:00 2001
From: liugl <liugl@sinata.cn>
Date: 星期五, 21 八月 2020 16:30:02 +0800
Subject: [PATCH] 8.21

---
 app/src/main/java/com/okgoincar/base/MyApplication.kt |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/app/src/main/java/com/okgoincar/base/MyApplication.kt b/app/src/main/java/com/okgoincar/base/MyApplication.kt
index 2506495..8209916 100644
--- a/app/src/main/java/com/okgoincar/base/MyApplication.kt
+++ b/app/src/main/java/com/okgoincar/base/MyApplication.kt
@@ -75,7 +75,7 @@
 
     private fun initSocket() {
         Handler(Looper.getMainLooper()).post {
-            toast("websocket初始化")
+//            toast("websocket初始化")
         }
         NettyClient.getInstance().init(this, Api.SOCKET_SERVER, Api.SOCKET_PORT, true)
         NettyClient.getInstance()
@@ -87,7 +87,7 @@
                     val json = JSONObject(message)
                     val method = json.optString("method")
                     Handler(Looper.getMainLooper()).post {
-                        toast("收到websocket=$method")
+//                        toast("收到websocket=$method")
                     }
                     val data = json.optString("data")
                     val code = json.optInt("code", -1)
@@ -261,9 +261,9 @@
             bean.data = dataBean
             NettyClient.getInstance()
                 .sendMessage(Gson().toJson(bean))
-//            Handler(Looper.getMainLooper()).post {
+            Handler(Looper.getMainLooper()).post {
 //                toast("发送location --> $dataBean")
-//            }
+            }
             sysErr(dataBean.toString())
         }
     }

--
Gitblit v1.7.1