前三个点位所有功能已调通
This commit is contained in:
24
internal/routes/play.go
Normal file
24
internal/routes/play.go
Normal 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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user