加入 pjlink 控制

This commit is contained in:
2025-02-28 20:34:50 +08:00
parent 3a2fc431ac
commit 81f31f15a5
11 changed files with 253 additions and 16 deletions

View File

@@ -28,7 +28,7 @@ type ResponseBody struct {
}
func PushCard(ctx context.Context) leaf.HandlerFunc {
g := (game.G).(game.ConfigPush)
g := (game.C).(game.ConfigPush)
readers := make([]card_reader.Reader, len(g.PushGroups))
devices := make([]*card_pusher.Device, len(g.PushGroups))

View File

@@ -18,7 +18,7 @@ import (
)
func WaitCard(ctx context.Context) leaf.HandlerFunc {
g := (game.G).(game.ConfigWait)
g := (game.C).(game.ConfigWait)
reader, err := card_reader.NewReader(g.Addr)
if err != nil {