屏幕控制完成

This commit is contained in:
2024-11-08 16:15:12 +08:00
parent 660ae1326f
commit 3da1fe761e
4 changed files with 26 additions and 4 deletions

View File

@@ -11,6 +11,9 @@ import (
func OnlyVideo(c *leaf.Context) {
payload := leaf.Value[*schema.PlayModal](c, middleware.PayloadJSONKey)
utils.BlankOpen()
defer utils.BlankClose()
if url, ok := payload.Game["video"]; ok {
_ = video.Play(c, utils.LinkVideo(url.(string)))
}