Browse Source

1.添加代码注释。

20241218TB223FC(测试jar包)
wangwanlei 9 months ago
parent
commit
5ef9c3ce09

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

236
             }
236
             }
237
         }
237
         }
238
         onBackPressedDispatcher.addCallback {
238
         onBackPressedDispatcher.addCallback {
239
-            //屏蔽返回
240
-            /*    viewModel.getAppList()
241
-                viewModel.getForceAppList()*/
242
-            userBean?.let {
243
-                viewModel.postDevicesetDetail(it.schoolid)
244
-            }
239
+
245
         }
240
         }
246
     }
241
     }
247
 
242
 
466
             }
461
             }
467
 
462
 
468
             Const.CODE2004.toString() -> {
463
             Const.CODE2004.toString() -> {
469
-                //TODO 更新策略是否需要通过应用接口处理应用
470
                 //请求接口更新策略
464
                 //请求接口更新策略
471
                 viewModel.uploadAppStrategy()
465
                 viewModel.uploadAppStrategy()
472
                 viewModel.updateStrategy()
466
                 viewModel.updateStrategy()

+ 3
- 0
app/src/main/java/com/xhly/manageapp/ui/main/viewmodel/MainViewModel.kt View File

97
         }
97
         }
98
     }
98
     }
99
 
99
 
100
+    /**
101
+     * 获得app时间使用策略
102
+     */
100
     fun uploadAppStrategy() {
103
     fun uploadAppStrategy() {
101
         launchUI {
104
         launchUI {
102
             val postAppListPad = strategyService.postAppListPad()
105
             val postAppListPad = strategyService.postAppListPad()

Loading…
Cancel
Save