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

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

24
internal/routes/play.go Normal file
View File

@@ -0,0 +1,24 @@
package routes
import (
"game-driver/internal/routes/play"
"game-driver/leaf"
)
func PlayRouter(location string, point int) leaf.HandlerFunc {
switch location {
case "wushan":
return switchPoint(point)
default:
return play.Default
}
}
func switchPoint(point int) leaf.HandlerFunc {
switch point {
case 3:
return play.OnlyVideo
default:
return play.Default
}
}