fix alipay notify url
This commit is contained in:
parent
c03854b6d1
commit
b57a826749
|
@ -101,27 +101,5 @@ func setServerStatusFD(status string) {
|
||||||
logger.Info("run cmd fail, p: %v, err: %v", serverStatusFdPath, err)
|
logger.Info("run cmd fail, p: %v, err: %v", serverStatusFdPath, err)
|
||||||
return
|
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)
|
logger.Info("SetServerStatusFD success: %v", status)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue