refactor: XTDriver

This commit is contained in:
lilong.129
2025-02-11 15:34:51 +08:00
parent b35116fdf7
commit 72f7b77bc8
28 changed files with 100 additions and 121 deletions

View File

@@ -18,7 +18,7 @@ func screenshotHandler(c *gin.Context) {
return
}
raw, err := dExt.GetDriver().Screenshot()
raw, err := dExt.Screenshot()
if err != nil {
log.Err(err).Msg(fmt.Sprintf("[%s]: failed to get screenshot", c.HandlerName()))
c.JSON(http.StatusInternalServerError,
@@ -84,7 +84,7 @@ func adbSourceHandler(c *gin.Context) {
return
}
source, err := dExt.GetDriver().Source()
source, err := dExt.Source()
if err != nil {
log.Err(err).Msg(fmt.Sprintf("[%s]: failed to get adb source", c.HandlerName()))
c.JSON(http.StatusInternalServerError,