|
|
@ -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)
|
|
|
|