Merge pull request #29 from mkanako/patch-1

修复用户离线时,调用转接接口报错问题
master
陶士涵 3 years ago committed by GitHub
commit 6d5823eff2
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