Commit 56f89321 authored by szh's avatar szh

nodeinfo 从serverstatus判断节点状态

parent e0350b6d
...@@ -341,7 +341,7 @@ func Version(c* gin.Context){ ...@@ -341,7 +341,7 @@ func Version(c* gin.Context){
func NodeInfo(c *gin.Context){ func NodeInfo(c *gin.Context){
appG:=app.Gin{C:c} appG:=app.Gin{C:c}
if app.NodeError!=nil{ if app.ServerStatus.NodeProcesssInfo.Pid == ""{
appG.Response(http.StatusOK,e.NODE_ERROR,"node down") appG.Response(http.StatusOK,e.NODE_ERROR,"node down")
return return
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment