pull/23/head
taoshihan1991 4 years ago
parent 361bee3d3e
commit 1f89b76239

@ -241,7 +241,7 @@ func singleBroadcaster(){
} }
clientList[clientMsg.VisitorId] = user clientList[clientMsg.VisitorId] = user
//插入数据表 //插入数据表
models.CreateVisitor(clientMsg.Name,clientMsg.Avator,message.c.ClientIP(),clientMsg.ToId,clientMsg.Id,clientMsg.Refer,clientMsg.City,clientMsg.ClientIp) //models.CreateVisitor(clientMsg.Name,clientMsg.Avator,message.c.ClientIP(),clientMsg.ToId,clientMsg.Id,clientMsg.Refer,clientMsg.City,clientMsg.ClientIp)
userInfo := make(map[string]string) userInfo := make(map[string]string)
userInfo["uid"] = user.id userInfo["uid"] = user.id
userInfo["username"] = user.name userInfo["username"] = user.name

Loading…
Cancel
Save