Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Jinnrry committed Jul 28, 2020
1 parent 8c2e2f4 commit 092f905
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public Response serve(IHTTPSession session) {
break;
case "/tap":
try {
Robot.tap(Integer.parseInt(parms.get("x")), Integer.parseInt(parms.get("y")), Long.parseLong(parms.get("delay")));
Robot.tap(Integer.parseInt(parms.get("x")), Integer.parseInt(parms.get("y")), (long) (Float.parseFloat(parms.get("delay")) * 1000));
ret = "{\"code\":200,\"msg\":\"success\"}";
} catch (Exception e) {
ret = "{\"code\":500,\"msg\":\"检查是否开启xposed\"}";
Expand Down

0 comments on commit 092f905

Please sign in to comment.