|
@@ -115,9 +115,13 @@ open class AppSocketService : LongConnService() {
|
115
|
115
|
|
116
|
116
|
Const.LOGAPPSTART -> {
|
117
|
117
|
val message = uiEvent.message
|
|
118
|
+ if (lastPkgName==message){
|
|
119
|
+ return
|
|
120
|
+ }
|
118
|
121
|
val filter = appList.filter { it.packageName == message }
|
119
|
122
|
if (filter.isNotEmpty()) {
|
120
|
123
|
val appInfo = filter[0]
|
|
124
|
+ lastPkgName=message
|
121
|
125
|
serviceScope.launch {
|
122
|
126
|
val logStartBean = LogAppStartBean()
|
123
|
127
|
ManageApplication.getDeviceInfo()?.let {
|
|
@@ -128,7 +132,7 @@ open class AppSocketService : LongConnService() {
|
128
|
132
|
logStartBean.versionName = appInfo.versionName
|
129
|
133
|
logStartBean.versionNum = appInfo.versionNum
|
130
|
134
|
LogShow("当前应用"+logStartBean.appName+"|||"+logStartBean.versionName+"|||"+logStartBean.versionNum)
|
131
|
|
- //logService.postLogAppStartAdd(logStartBean)
|
|
135
|
+ logService.postLogAppStartAdd(logStartBean)
|
132
|
136
|
}
|
133
|
137
|
}
|
134
|
138
|
}
|