|
@@ -19,7 +19,7 @@ import com.xhly.manageapp.ManageApplication
|
19
|
19
|
import com.xhly.manageapp.bean.EventLog
|
20
|
20
|
import com.xhly.manageapp.bean.log.LogAppStartBean
|
21
|
21
|
import com.xhly.manageapp.bean.log.LogdOperateBean
|
22
|
|
-import com.xhly.manageapp.network.LogService
|
|
22
|
+import com.xhly.manageapp.network.log.LogService
|
23
|
23
|
import com.xhly.websocket.bean.WebSocketData
|
24
|
24
|
import com.xhly.websocket.service.SocketClient
|
25
|
25
|
import com.xhly.websocket.service.WebSocketHelper
|
|
@@ -202,7 +202,6 @@ class AppSocket : SocketClient() {
|
202
|
202
|
}
|
203
|
203
|
|
204
|
204
|
|
205
|
|
-
|
206
|
205
|
private fun downLoadFile(url: String) {
|
207
|
206
|
serviceScope.launch {
|
208
|
207
|
withContext(Dispatchers.IO) {
|
|
@@ -219,7 +218,7 @@ class AppSocket : SocketClient() {
|
219
|
218
|
val successful = execute.isSuccessful()
|
220
|
219
|
LogShow("下载结果" + successful)
|
221
|
220
|
if (successful) {
|
222
|
|
- withContext(Dispatchers.Main){
|
|
221
|
+ withContext(Dispatchers.Main) {
|
223
|
222
|
ManageApplication.installPackage(File(name, "test.apk").toString())
|
224
|
223
|
}
|
225
|
224
|
}
|