其他客服在线列表

pull/23/head
陶士涵 4 years ago
parent d21a83cbc9
commit 222585f786

@ -44,8 +44,8 @@ func GetOtherKefuList(c *gin.Context) {
item["name"] = kefu.Name item["name"] = kefu.Name
item["avator"] = kefu.Avator item["avator"] = kefu.Avator
item["status"] = "offline" item["status"] = "offline"
_, ok := ws.KefuList[kefu.Name] kefus, ok := ws.KefuList[kefu.Name]
if ok { if ok && len(kefus) != 0 {
item["status"] = "online" item["status"] = "online"
} }
result = append(result, item) result = append(result, item)

Loading…
Cancel
Save