|
@@ -227,7 +227,13 @@ class MainActivity : BaseActivity<MainViewModel, ActivityMainBinding>() {
|
227
|
227
|
|
228
|
228
|
}
|
229
|
229
|
mBinding.loginoutIv.setOnClickListener {
|
230
|
|
- showEditDialog()
|
|
230
|
+ val schoolDeviceSetBean = StrategyUtils.getSchoolDeviceSetBean(this@MainActivity)
|
|
231
|
+ if (schoolDeviceSetBean !=null&&schoolDeviceSetBean.logout==1){
|
|
232
|
+ //禁用注销
|
|
233
|
+ return@setOnClickListener
|
|
234
|
+ }else{
|
|
235
|
+ showEditDialog()
|
|
236
|
+ }
|
231
|
237
|
}
|
232
|
238
|
mBinding.codeenterCv.setOnClickListener {
|
233
|
239
|
//如果密码一致,则解锁
|