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
c124de90e9
commit
0c18a2d2f1
1 changed files with 6 additions and 1 deletions
|
|
@ -136,7 +136,7 @@ func getWS(workerData Info, key []byte) string {
|
||||||
fmt.Println(err.Error())
|
fmt.Println(err.Error())
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
fmt.Println("send message!")
|
//fmt.Println("send message!")
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -249,6 +249,11 @@ func xWorker(workerData Info) {
|
||||||
|
|
||||||
messageID := getMessageID(string(message))
|
messageID := getMessageID(string(message))
|
||||||
|
|
||||||
|
if messageID == 28 && strings.Contains(string(message), "offline") {
|
||||||
|
fmt.Println("offline:", workerData.room)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
if messageID == 27 {
|
if messageID == 27 {
|
||||||
input := struct {
|
input := struct {
|
||||||
Value int64 `json:"value"`
|
Value int64 `json:"value"`
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue