Browse Source

修改bug

pull/1283/head
ychao_1983 3 years ago
parent
commit
8961f7c581
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      routers/actionnotification.go

+ 2
- 2
routers/actionnotification.go View File

@@ -43,10 +43,10 @@ func WriteLastTenActionsIfHave(conn *websocket.Conn) {
size := socketwrap.LastTenActionsQueue.Queue.Len()
if size > 0 {
tempE := socketwrap.LastTenActionsQueue.Queue.Front()
conn.WriteJSON(tempE)
conn.WriteJSON(tempE.Value)
for i := 1; i < size; i++ {
tempE = tempE.Next()
conn.WriteJSON(tempE)
conn.WriteJSON(tempE.Value)

}
}


Loading…
Cancel
Save