超管不在获取所有在线用户

pull/23/head
taoshihan1991 4 years ago
parent e59b341282
commit 6a1ca738a5

@ -258,11 +258,10 @@ func GetVisitorOnlines(c *gin.Context) {
// @Router /visitors_kefu_online [get]
func GetKefusVisitorOnlines(c *gin.Context) {
kefuName, _ := c.Get("kefu_name")
roleId, _ := c.Get("kefu_id")
users := make([]*VisitorOnline, 0)
visitorIds := make([]string, 0)
for uid, visitor := range ws.ClientList {
if visitor.To_id != kefuName && roleId.(float64) != 2 {
if visitor.To_id != kefuName {
continue
}
userInfo := new(VisitorOnline)

Loading…
Cancel
Save