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
 
880
 
881
     private fun updateAllStrategy() {
881
     private fun updateAllStrategy() {
882
         LogShow("请求策略锁定了吧")
882
         LogShow("请求策略锁定了吧")
883
+        Const.backNum = 0
883
         userBean?.let {
884
         userBean?.let {
884
             Const.USERID = it.userid
885
             Const.USERID = it.userid
885
             Const.USERNAME = it.username.toString()
886
             Const.USERNAME = it.username.toString()

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

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

Loading…
Cancel
Save