change: remove image result to reduce summary size

This commit is contained in:
lilong.129
2024-11-14 22:14:56 +08:00
parent d97de403f9
commit b8b42d420b
3 changed files with 10 additions and 13 deletions
+1 -1
View File
@@ -1 +1 @@
v5.0.0+2411142130
v5.0.0+2411142214
+2 -2
View File
@@ -784,8 +784,8 @@ func (dExt *DriverExt) DoAction(action MobileAction) (err error) {
type SleepConfig struct {
StartTime time.Time `json:"start_time"`
Seconds float64 `json:"seconds"`
Milliseconds int64 `json:"milliseconds"`
Seconds float64 `json:"seconds,omitempty"`
Milliseconds int64 `json:"milliseconds,omitempty"`
}
var errActionNotImplemented = errors.New("UI action not implemented")
+1 -4
View File
@@ -21,9 +21,7 @@ import (
type ScreenResult struct {
bufSource *bytes.Buffer // raw image buffer bytes
ImagePath string // image file path
ImageResult *ImageResult // image result
ImagePath string `json:"image_path"` // image file path
Resolution Size `json:"resolution"`
UploadedURL string `json:"uploaded_url"` // uploaded image url
Texts OCRTexts `json:"texts"` // dumped raw OCRTexts
@@ -114,7 +112,6 @@ func (dExt *DriverExt) GetScreenResult(options ...ActionOption) (screenResult *S
}
}
}
screenResult.ImageResult = imageResult
}
log.Debug().