From 29b2115f5d2b20759b5c14128b3b66e15e341198 Mon Sep 17 00:00:00 2001 From: taoshihan Date: Sun, 31 Aug 2025 22:03:46 +0800 Subject: [PATCH] fix --- controller/visitor.go | 2 +- static/templates/chat_main.html | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/controller/visitor.go b/controller/visitor.go index 7dd17a3..d08058c 100644 --- a/controller/visitor.go +++ b/controller/visitor.go @@ -162,7 +162,7 @@ func GetVisitors(c *gin.Context) { page, _ := strconv.Atoi(c.Query("page")) pagesize, _ := strconv.Atoi(c.Query("pagesize")) if pagesize == 0 { - pagesize = int(common.VisitorPageSize) + pagesize = 10 } kefuId, _ := c.Get("kefu_name") vistors := models.FindVisitorsByKefuId(uint(page), uint(pagesize), kefuId.(string)) diff --git a/static/templates/chat_main.html b/static/templates/chat_main.html index d356d76..a4785cf 100644 --- a/static/templates/chat_main.html +++ b/static/templates/chat_main.html @@ -872,7 +872,6 @@ if(data.result.list!=null){ _this.visitors=data.result.list; _this.visitorCount=data.result.count; - _this.visitorPageSize=data.result.pagesize; } if(data.code!=200){ _this.$message({