使用设计模式优化发卡机

This commit is contained in:
2024-11-20 13:54:05 +08:00
parent 480e9ab6d5
commit 4ea0af5bd7
8 changed files with 249 additions and 105 deletions

View File

@@ -20,7 +20,7 @@ func switchPoint(point int) leaf.HandlerFunc {
return play.OnlyVideo
case 4:
// 4号点位(发卡机)
return play.NewPushCard()
return play.PushCard()
default:
return play.Default
}