diff --git a/controller/chat.go b/controller/chat.go index b6e811a..2942dc1 100644 --- a/controller/chat.go +++ b/controller/chat.go @@ -243,6 +243,7 @@ func singleBroadcaster(){ vistorInfo:=models.FindVisitorByVistorId(clientMsg.VisitorId) if vistorInfo.VisitorId==""{ SendNotice("访客数据不存在",conn) + continue } //用户id对应的连接 user:=&vistor{