platform: Improve interface

This commit is contained in:
世界
2026-01-04 02:53:33 +08:00
parent 7d2944eba9
commit 0caebd3171
12 changed files with 213 additions and 908 deletions

View File

@@ -195,6 +195,14 @@ func (s *CommandServer) NeedWIFIState() bool {
return instance.Box().Network().NeedWIFIState()
}
func (s *CommandServer) NeedFindProcess() bool {
instance := s.StartedService.Instance()
if instance == nil || instance.Box() == nil {
return false
}
return instance.Box().Router().NeedFindProcess()
}
func (s *CommandServer) Pause() {
instance := s.StartedService.Instance()
if instance == nil || instance.PauseManager() == nil {