修复用户离线时,调用转接接口报错问题

pull/29/head
kanako 4 years ago committed by GitHub
parent d311aafc11
commit 8ad77ea555
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -139,6 +139,8 @@ func WsServerBackend() {
} }
} }
func UpdateVisitorUser(visitorId string, toId string) { func UpdateVisitorUser(visitorId string, toId string) {
guest, _ := ClientList[visitorId] guest, ok := ClientList[visitorId]
guest.To_id = toId if ok {
guest.To_id = toId
}
} }

Loading…
Cancel
Save