Commit 3d966a2b authored by szh's avatar szh

反馈指向新表

parent b895f1f2
...@@ -597,7 +597,7 @@ func getAutoSSHProcessInfo() (*PaiProcessInfo,error) { ...@@ -597,7 +597,7 @@ func getAutoSSHProcessInfo() (*PaiProcessInfo,error) {
cmd.Stdout = &buf cmd.Stdout = &buf
err := cmd.Run() err := cmd.Run()
if err != nil { if err != nil {
tlog.Error("getPaiProcessInfo cmd","err",err) tlog.Error("getAutoSSHProcessInfo cmd","err",err)
return nil,err return nil,err
} }
trimBuf := strings.Trim(buf.String()," ") trimBuf := strings.Trim(buf.String()," ")
...@@ -609,7 +609,7 @@ func getAutoSSHProcessInfo() (*PaiProcessInfo,error) { ...@@ -609,7 +609,7 @@ func getAutoSSHProcessInfo() (*PaiProcessInfo,error) {
location , _ := time.LoadLocation("Local") location , _ := time.LoadLocation("Local")
tt,err := time.ParseInLocation(time.ANSIC,lstart,location) tt,err := time.ParseInLocation(time.ANSIC,lstart,location)
if err != nil { if err != nil {
tlog.Error("getPaiProcessInfo","err",err) tlog.Error("getAutoSSHProcessInfo","err",err)
return nil,err return nil,err
} }
start := tt.Unix() start := tt.Unix()
......
...@@ -39,13 +39,13 @@ func InitRouter() *gin.Engine { ...@@ -39,13 +39,13 @@ func InitRouter() *gin.Engine {
//服务器状态 //服务器状态
apiv1.POST("/serverstatus",v1.GetServerStatus) apiv1.POST("/serverstatus",v1.GetServerStatus)
//反馈信息 //反馈信息
apiv1.POST("/feedback",v1.FeedBack) apiv1.POST("/feedback",v1.FeedBackWithoutSSH)
//反馈处理进度 //反馈处理进度
apiv1.POST("/iscomplete",v1.FeedBackStatus) apiv1.POST("/iscomplete",v1.FeedBackStatusWithoutSSH)
//反馈信息 //反馈信息
apiv1.POST("/feedbacknew",v1.FeedBackWithoutSSH) apiv1.POST("/feedback1",v1.FeedBack)
//反馈处理进度 //反馈处理进度
apiv1.POST("/iscompletenew",v1.FeedBackStatusWithoutSSH) apiv1.POST("/iscomplete1",v1.FeedBackStatus)
apiv1.POST("/escrowpassword",v1.EscrowPasswd) apiv1.POST("/escrowpassword",v1.EscrowPasswd)
//pai更新完成用户手动重启设备 //pai更新完成用户手动重启设备
//apiv1.POST("/isreboot",v1.IsReBoot) //apiv1.POST("/isreboot",v1.IsReBoot)
......
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