Compare commits
No commits in common. "766b58ae404f13a78f2cf827fc9d82d9a90c82d0" and "16f397d507f296edf46afbc893f681b6a984c987" have entirely different histories.
766b58ae40
...
16f397d507
|
|
@ -205,13 +205,6 @@ func SRMessage(c *gin.Context) {
|
||||||
msg.Session = res
|
msg.Session = res
|
||||||
res3, _ = json.Marshal(msg)
|
res3, _ = json.Marshal(msg)
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
//对方不在线
|
|
||||||
msg.Type = "offline"
|
|
||||||
msg.Msg = "offline"
|
|
||||||
msg.From_user_id = -1
|
|
||||||
msg.Session = res
|
|
||||||
res3, _ = json.Marshal(msg)
|
|
||||||
}
|
}
|
||||||
err2 := ws.WriteMessage(websocket.TextMessage, res3)
|
err2 := ws.WriteMessage(websocket.TextMessage, res3)
|
||||||
if err2 != nil {
|
if err2 != nil {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue