|
@@ -351,6 +351,7 @@ class MainActivity : BaseActivity<MainViewModel, ActivityMainBinding>() {
|
351
|
351
|
super.onResume()
|
352
|
352
|
userBean?.let {
|
353
|
353
|
Const.USERID=it.userid.toString()
|
|
354
|
+ Const.USERNAME=it.username.toString()
|
354
|
355
|
viewModel.postDevicesetDetail(it.schoolid)
|
355
|
356
|
}
|
356
|
357
|
viewModel.postWallpaperPad()
|
|
@@ -805,6 +806,7 @@ class MainActivity : BaseActivity<MainViewModel, ActivityMainBinding>() {
|
805
|
806
|
data.doEvent = EventLog.ACCOUNTQUITEVENT
|
806
|
807
|
viewModel.eventLog(data)
|
807
|
808
|
Const.USERID="1"
|
|
809
|
+ Const.USERNAME=""
|
808
|
810
|
WorkManager.getInstance(this).cancelAllWork()
|
809
|
811
|
deleteSharedPreferences(SharedPreferencesUtils.SP_FILE_NAME)
|
810
|
812
|
startIntentActivity(LoginActivity().javaClass)
|