diff --git a/controller/reply.go b/controller/reply.go index c742a92..5ad07b0 100644 --- a/controller/reply.go +++ b/controller/reply.go @@ -80,8 +80,8 @@ func PostReplySearch(c *gin.Context) { kefuId, _ := c.Get("kefu_name") search := c.PostForm("search") if search == "" { - c.JSON(400, gin.H{ - "code": 200, + c.JSON(200, gin.H{ + "code": 400, "msg": "参数错误", }) return diff --git a/static/html/chat_main.html b/static/html/chat_main.html index 483b62f..8ad5dbb 100644 --- a/static/html/chat_main.html +++ b/static/html/chat_main.html @@ -4,7 +4,7 @@