修复投影仪控制

This commit is contained in:
2025-03-05 11:03:19 +08:00
parent 363047c078
commit c71e8bc13d
18 changed files with 598 additions and 399 deletions

View File

@@ -0,0 +1,22 @@
package standby
import (
"context"
"game-driver/internal/schema"
"game-driver/pkg/browser"
"game-driver/pkg/utils"
"go.uber.org/zap"
)
func Web(item schema.WaitItemModel) func(c context.Context) error {
return func(c context.Context) error {
zap.S().Infoln("打开待机网页")
// 控制背光
utils.BlankOpen()
defer utils.BlankClose()
browser.OpenApp(c, item.Data)
return nil
}
}