Browse Source

修改bug

tags/v1.22.1.1^2
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() size := socketwrap.LastTenActionsQueue.Queue.Len()
if size > 0 { if size > 0 {
tempE := socketwrap.LastTenActionsQueue.Queue.Front() tempE := socketwrap.LastTenActionsQueue.Queue.Front()
conn.WriteJSON(tempE)
conn.WriteJSON(tempE.Value)
for i := 1; i < size; i++ { for i := 1; i < size; i++ {
tempE = tempE.Next() tempE = tempE.Next()
conn.WriteJSON(tempE)
conn.WriteJSON(tempE.Value)


} }
} }


Loading…
Cancel
Save