diff --git a/main.go b/main.go index 0adf42d..8cc8cd5 100644 --- a/main.go +++ b/main.go @@ -394,7 +394,7 @@ func runBack() { _ = cmd.Wait() if cmd.ProcessState.Exited() { log.Infoln(cmd.ProcessState) - if cmd.ProcessState.ExitCode() != 1001 { + if cmd.ProcessState.ExitCode() != 201 { break } else { log.Infoln("检测到重启,开始重启程序") diff --git a/utils/util.go b/utils/util.go index a394f86..b9efb5b 100644 --- a/utils/util.go +++ b/utils/util.go @@ -28,7 +28,7 @@ func Restart() { // cmd.Start() // os.Exit(3) //}) - os.Exit(1001) + os.Exit(201) }