From b57a826749780e1abccc6aa68bd35b5e73192e06 Mon Sep 17 00:00:00 2001 From: lwl0608 Date: Wed, 15 May 2024 19:45:51 +0800 Subject: [PATCH] fix alipay notify url --- library/httpserver/httpserver.go | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/library/httpserver/httpserver.go b/library/httpserver/httpserver.go index 06967b5c..db436374 100644 --- a/library/httpserver/httpserver.go +++ b/library/httpserver/httpserver.go @@ -101,27 +101,5 @@ func setServerStatusFD(status string) { logger.Info("run cmd fail, p: %v, err: %v", serverStatusFdPath, err) return } - - return - - serverStatusFdPath = "/Users/erwin/SERVER_STATUS_FD" - file, err := os.OpenFile(serverStatusFdPath, os.O_RDWR|os.O_CREATE, 0666) - if err != nil { - logger.Info("OpenFile fail, p: %v, err: %v", serverStatusFdPath, err) - return - } - defer func() { - _ = file.Close() - }() - err = file.Truncate(0) - if err != nil { - logger.Info("file Truncate fail, p: %v, err: %v", serverStatusFdPath, err) - return - } - _, err = file.WriteString(status) - if err != nil { - logger.Info("file WriteString fail, p: %v, v: %v, err: %v", serverStatusFdPath, status, err) - return - } logger.Info("SetServerStatusFD success: %v", status) }