前三个点位所有功能已调通

This commit is contained in:
2024-11-08 15:37:36 +08:00
parent 239d542edc
commit 660ae1326f
13 changed files with 331 additions and 27 deletions

View File

@@ -0,0 +1,15 @@
package middleware
import (
"game-driver/leaf"
"log"
)
func RunLog() leaf.HandlerFunc {
return func(c *leaf.Context) {
log.Printf("收到消息, topic: %s, payload: %s", c.Topic, c.Payload)
defer log.Println("执行结束")
c.Next()
}
}