diff --git a/APIServer.exe b/APIServer.exe index f4ac02c..eb591ad 100644 Binary files a/APIServer.exe and b/APIServer.exe differ diff --git a/APIServer.go b/APIServer.go index 7381b7c..3f55e99 100644 --- a/APIServer.go +++ b/APIServer.go @@ -47,7 +47,7 @@ func init() { logger = log.New(&lumberjack.Logger{ Filename: strings.TrimSuffix(os.Args[0], ".exe") + ".log", - MaxAge: 30, + MaxAge: 90, MaxSize: 10, MaxBackups: 100, LocalTime: true, @@ -135,8 +135,8 @@ func main() { logger.Printf("[ERR] Stop Service Failed: %s\r\n", err.Error()) os.Exit(1) } - log.Printf("[MSG] Service Stop.\r\n") - logger.Printf("[MSG] Service Stop.\r\n") + log.Printf("[MSG] Service Stopped.\r\n") + logger.Printf("[MSG] Service Stopped.\r\n") return } @@ -148,8 +148,8 @@ func main() { logger.Printf("[ERR] Stop Service Failed: %s\r\n", err.Error()) os.Exit(1) } - log.Printf("[MSG] Service Stop.\r\n") - logger.Printf("[MSG] Service Stop.\r\n") + log.Printf("[MSG] Service Stopped.\r\n") + logger.Printf("[MSG] Service Stopped.\r\n") time.Sleep(time.Second * 1) err = winsvc.StartService(svc) @@ -170,8 +170,9 @@ func main() { logger.Printf("[ERR] Run As Service Failed: %s\r\n", err.Error()) os.Exit(1) } - log.Printf("[MSG] Run As Service ...\r\n") - logger.Printf("[MSG] Run As Service ...\r\n") + // log.Printf("[MSG] Run As Service ...\r\n") + // logger.Printf("[MSG] Run As Service ...\r\n") + return } } @@ -194,7 +195,7 @@ func startSvc() { func stopSvc() { log.Printf("[MSG] Stopping Service ...\r\n") logger.Printf("[MSG] Stopping Service ...\r\n") - os.Exit(0) + // os.Exit(0) } func handleIndex(w http.ResponseWriter, r *http.Request) { diff --git a/EditableTable.html b/EditableTable.html new file mode 100644 index 0000000..bdfd2b8 --- /dev/null +++ b/EditableTable.html @@ -0,0 +1,156 @@ + + +
+姓名 | +年龄 | +城市 | +操作 | +
---|---|---|---|
John | +25 | +New York | ++ |
Jane | +30 | +London | ++ |