mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-09 17:59:36 +08:00
refactor: complete ActionOptions unification and pointer type optimization
This commit is contained in:
@@ -39,7 +39,7 @@ func (r *Router) backspaceHandler(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
count := req.GetCount()
|
||||
count := req.Count
|
||||
if count == 0 {
|
||||
count = 20
|
||||
}
|
||||
@@ -67,7 +67,7 @@ func (r *Router) keycodeHandler(c *gin.Context) {
|
||||
}
|
||||
// TODO FIXME
|
||||
err = driver.IDriver.(*uixt.ADBDriver).
|
||||
PressKeyCode(uixt.KeyCode(req.GetKeycode()), uixt.KMEmpty)
|
||||
PressKeyCode(uixt.KeyCode(req.Keycode), uixt.KMEmpty)
|
||||
if err != nil {
|
||||
RenderError(c, err)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user