fix alipay notify url

This commit is contained in:
lwl0608 2024-05-15 19:45:51 +08:00
parent c03854b6d1
commit b57a826749
1 changed files with 0 additions and 22 deletions

View File

@ -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)
}