Browse Source

1.只有存在用户才调用socket

20241218TB223FC(测试jar包)
wangwanlei 11 months ago
parent
commit
fefaca1622

+ 4
- 2
app/src/main/java/com/xhly/manageapp/workmanager/TimingWorker.kt View File

80
                 LogShow("没有位置问题"+e.toString())
80
                 LogShow("没有位置问题"+e.toString())
81
             }
81
             }
82
             //创建socket
82
             //创建socket
83
-            ManageApplication.instance?.let {
84
-                AppSocket.startSocket(it)
83
+            userBean?.let {
84
+                ManageApplication.instance?.let {
85
+                    AppSocket.startSocket(it)
86
+                }
85
             }
87
             }
86
             //TODO 暂时注销登录校验
88
             //TODO 暂时注销登录校验
87
             //校验登录
89
             //校验登录

Loading…
Cancel
Save