diff --git a/cctp-atu/atu-engine/atu-script-engine/src/main/java/net/northking/cctp/se/device/bean/MobileDeviceConnection.java b/cctp-atu/atu-engine/atu-script-engine/src/main/java/net/northking/cctp/se/device/bean/MobileDeviceConnection.java index 2766424..d6e3d07 100644 --- a/cctp-atu/atu-engine/atu-script-engine/src/main/java/net/northking/cctp/se/device/bean/MobileDeviceConnection.java +++ b/cctp-atu/atu-engine/atu-script-engine/src/main/java/net/northking/cctp/se/device/bean/MobileDeviceConnection.java @@ -886,6 +886,7 @@ public class MobileDeviceConnection extends AbstractDeviceConnection { HashMap params = new HashMap(); params.put("caseId", devicePerInfo.getCaseId()); params.put("platform", deviceInfo.getPlatform()); + params.put("deviceId", deviceInfo.getDeviceId()); HttpEntity> entity = new HttpEntity<>(params); try { ResponseEntity responseEntity = restTemplate.exchange(String.format(STOP_RECORD_DEVICE_PER, deviceInfo.getConnectAddress() + ":" + (null == deviceInfo.getPort() ? defaultUpperPort : deviceInfo.getPort())), HttpMethod.POST, entity, String[].class); diff --git a/cctp-atu/atu-upper-computer/src/main/java/net/northking/cctp/upperComputer/service/AndroidDebuggerServiceImpl.java b/cctp-atu/atu-upper-computer/src/main/java/net/northking/cctp/upperComputer/service/AndroidDebuggerServiceImpl.java index 45d9ec2..f7a525f 100644 --- a/cctp-atu/atu-upper-computer/src/main/java/net/northking/cctp/upperComputer/service/AndroidDebuggerServiceImpl.java +++ b/cctp-atu/atu-upper-computer/src/main/java/net/northking/cctp/upperComputer/service/AndroidDebuggerServiceImpl.java @@ -153,7 +153,7 @@ public class AndroidDebuggerServiceImpl extends AbstractDebuggerService { public String[] stopRecordDevicePer(DebuggerDeviceInfo info) { String[] result = new String[2]; logger.debug("结束任务:{}的设备和应用的参数。。。。。。。。。。",info.getCaseId()); - AndroidDeviceInfoByPackageThread thread = queryDeviceInfoByPackageMap.remove(info.getCaseId()); + AndroidDeviceInfoByPackageThread thread = queryDeviceInfoByPackageMap.remove(info.getDeviceId()); if (null != thread && !thread.isInterrupted() && thread.isAlive()) { String appInfoAddress = thread.stopThread(); result[1] = appInfoAddress;