mirror of
https://github.com/statbate/fantastic-engine.git
synced 2026-08-11 03:02:41 +00:00
update
This commit is contained in:
parent
0c18a2d2f1
commit
a8342b4f3c
1 changed files with 21 additions and 23 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"encoding/base64"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/gorilla/websocket"
|
"github.com/gorilla/websocket"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
@ -8,7 +9,6 @@ import (
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
"encoding/base64"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
var uptime = time.Now().Unix()
|
var uptime = time.Now().Unix()
|
||||||
|
|
@ -164,7 +164,6 @@ func xWorker(workerData Info) {
|
||||||
rooms.Del <- workerData.room
|
rooms.Del <- workerData.room
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
|
||||||
if len(workerData.Key) < 50 {
|
if len(workerData.Key) < 50 {
|
||||||
fmt.Println(workerData.Key, workerData.room)
|
fmt.Println(workerData.Key, workerData.room)
|
||||||
return
|
return
|
||||||
|
|
@ -246,7 +245,6 @@ func xWorker(workerData Info) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
messageID := getMessageID(string(message))
|
messageID := getMessageID(string(message))
|
||||||
|
|
||||||
if messageID == 28 && strings.Contains(string(message), "offline") {
|
if messageID == 28 && strings.Contains(string(message), "offline") {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue