Browse Source

1.执行过策略后将Const.backNum次数重置。

20241218TB223FC(测试jar包)
wangwanlei 7 months ago
parent
commit
ad6f56a1f4

+ 1
- 0
app/src/main/java/com/xhly/manageapp/ui/main/activity/MainActivity.kt View File

@@ -880,6 +880,7 @@ class MainActivity : BaseActivity<MainViewModel, ActivityMainBinding>(),Download
880 880
 
881 881
     private fun updateAllStrategy() {
882 882
         LogShow("请求策略锁定了吧")
883
+        Const.backNum = 0
883 884
         userBean?.let {
884 885
             Const.USERID = it.userid
885 886
             Const.USERNAME = it.username.toString()

+ 1
- 1
corelib/src/main/java/com/xhly/corelib/Const.kt View File

@@ -43,7 +43,7 @@ object Const {
43 43
     var backNum = 0
44 44
 
45 45
     //记录点击返回的次数,超过10次请求策略
46
-    const val UPDATESTRATEGYNUM = 20
46
+    const val UPDATESTRATEGYNUM = 10
47 47
 
48 48
     /**
49 49
      * 标记熄屏

Loading…
Cancel
Save