Commit db6bb8e1 authored by szh's avatar szh

up feedback return

parent 3ff84c10
......@@ -204,12 +204,18 @@ func FeedBackWithouSSH(c *gin.Context){
return
}
if KP["addr"] == "" {
appG.Response(http.StatusOK, e.INVALID_PARAMS, nil)
appG.C.JSON(http.StatusOK,gin.H{
"msg":"参数异常",
"code":"400",
})
return
}
exist,err := models.ExistsUncompletedFeedbackNossh(KP["addr"])
if err != nil || !exist {
appG.Response(http.StatusOK, e.UNDONE, nil)
if err != nil || exist {
appG.C.JSON(http.StatusOK,gin.H{
"msg":"反馈未解决",
"code":"500",
})
return
}
models.AddFeedBackNossh(models.RaspFeedbackNossh{
......
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