Browse Source

1.将解除管控参数设置为不可解除。

0423x6e6f
wangwanlei 19 hours ago
parent
commit
85afa0197f

+ 2
- 1
app/src/main/java/com/xhly/manageapp/ManageApplication.kt View File

@@ -880,7 +880,8 @@ class ManageApplication : MultiDexApplication() {
880 880
             val spUtils = SharedPreferencesUtils.getInstance(this)
881 881
             //获取是否已经解除管控
882 882
             val currentSpUtils by lazy { CurrentAppSharedPreferencesUtils.getInstance(this) }
883
-            val exitControlFlag = currentSpUtils.getParam(Const.EXIT_CONTROL, false) as Boolean
883
+            /*val exitControlFlag = currentSpUtils.getParam(Const.EXIT_CONTROL, false) as Boolean*/
884
+            val exitControlFlag =false
884 885
             Toaster.init(this)
885 886
             DialogX.init(this)
886 887
             if (ModelNameUtils.IS_LianxX505f() || ModelNameUtils.IS_LianxX6e6f()) {

+ 4
- 2
app/src/main/java/com/xhly/manageapp/ui/login/activity/LoginActivity.kt View File

@@ -106,7 +106,8 @@ class LoginActivity : BaseActivity<LoginViewModel, ActivityLoginBinding>() {
106 106
         }
107 107
         //自动同时一次时间
108 108
         viewModel.postSyncTime()
109
-        val exitControlFlag = currentSpUtils.getParam(Const.EXIT_CONTROL, false) as Boolean
109
+       /* val exitControlFlag = currentSpUtils.getParam(Const.EXIT_CONTROL, false) as Boolean*/
110
+        val exitControlFlag=false
110 111
         //如果解除管控为真,则不在执行以下代码
111 112
         if (!exitControlFlag){
112 113
             StrategyUtils.initControlStrategy(false)
@@ -253,7 +254,8 @@ class LoginActivity : BaseActivity<LoginViewModel, ActivityLoginBinding>() {
253 254
 
254 255
     private fun loginSucess(userBean: UserBean){
255 256
         //登录成功则打开管控
256
-        val exitControlFlag = currentSpUtils.getParam(Const.EXIT_CONTROL, false) as Boolean
257
+       /* val exitControlFlag = currentSpUtils.getParam(Const.EXIT_CONTROL, false) as Boolean*/
258
+        val exitControlFlag = false
257 259
         if (exitControlFlag){
258 260
             //如果解除了管控,登录成功则重新添加管控
259 261
             currentSpUtils.setParam(Const.EXIT_CONTROL,false)

Loading…
Cancel
Save