|
@@ -1,5 +1,6 @@
|
1
|
1
|
package com.xhly.manageapp.viewmodel
|
2
|
2
|
|
|
3
|
+import android.app.usage.UsageEvents.Event
|
3
|
4
|
import androidx.lifecycle.LiveData
|
4
|
5
|
import androidx.lifecycle.MutableLiveData
|
5
|
6
|
import com.xhly.corelib.base.viewmodel.CommonBaseViewModel
|
|
@@ -7,6 +8,7 @@ import com.xhly.corelib.network.RetrofitService
|
7
|
8
|
import com.xhly.corelib.utils.LogShow
|
8
|
9
|
import com.xhly.corelib.utils.MD5Utils
|
9
|
10
|
import com.xhly.corelib.utils.SystemUtil
|
|
11
|
+import com.xhly.manageapp.bean.EventLog
|
10
|
12
|
import com.xhly.manageapp.bean.log.LogEventBean
|
11
|
13
|
import com.xhly.manageapp.bean.log.LogPushBean
|
12
|
14
|
import com.xhly.manageapp.bean.log.LogPushResultBean
|
|
@@ -97,6 +99,14 @@ open class BaseViewModel : CommonBaseViewModel() {
|
97
|
99
|
logEventBean.enableFlag = true
|
98
|
100
|
logEventBean.logEventType = operateBean.doEvent
|
99
|
101
|
logEventResult.value = logEventBean
|
|
102
|
+ }else{
|
|
103
|
+ if (result.code==-1&&operateBean.doEvent== EventLog.ACCOUNTQUITEVENT){
|
|
104
|
+ //请求遇到问题时,退出登录直接成功
|
|
105
|
+ val logEventBean = LogEventBean()
|
|
106
|
+ logEventBean.enableFlag = true
|
|
107
|
+ logEventBean.logEventType = operateBean.doEvent
|
|
108
|
+ logEventResult.value = logEventBean
|
|
109
|
+ }
|
100
|
110
|
}
|
101
|
111
|
}
|
102
|
112
|
}
|