|
|
@@ -146,7 +146,7 @@ public class HkServiceImpl implements HkService {
|
|
146
|
146
|
return resultResDTO.getData();
|
|
147
|
147
|
}
|
|
148
|
148
|
} catch (Exception e) {
|
|
149
|
|
- log.error("previewURLs error:", e);
|
|
|
149
|
+ log.error("recordStart error:", e);
|
|
150
|
150
|
}
|
|
151
|
151
|
return null;
|
|
152
|
152
|
}
|
|
|
@@ -164,7 +164,28 @@ public class HkServiceImpl implements HkService {
|
|
164
|
164
|
);
|
|
165
|
165
|
log.info("{}", JSON.toJSONString(resultResDTO));
|
|
166
|
166
|
} catch (Exception e) {
|
|
167
|
|
- log.error("previewURLs error:", e);
|
|
|
167
|
+ log.error("recordStop error:", e);
|
|
168
|
168
|
}
|
|
169
|
169
|
}
|
|
|
170
|
+
|
|
|
171
|
+ @Override
|
|
|
172
|
+ public CaptureResDTO manualCapture(CaptureReqDTO captureReqDTO) {
|
|
|
173
|
+ try {
|
|
|
174
|
+ // 接口地址
|
|
|
175
|
+ Map<String, String> path = getPath(ApiHkConstant.API_HK_MANUAL_CAPTURE);
|
|
|
176
|
+ String result = ArtemisHttpUtil.doPostStringArtemis(artemisConfig, path, JSON.toJSONString(captureReqDTO), null, null, "application/json");
|
|
|
177
|
+ ResultResDTO<CaptureResDTO> resultResDTO = JSONObject.parseObject(
|
|
|
178
|
+ result,
|
|
|
179
|
+ new TypeReference<ResultResDTO<CaptureResDTO>>() {
|
|
|
180
|
+ }
|
|
|
181
|
+ );
|
|
|
182
|
+ log.info("{}", JSON.toJSONString(resultResDTO));
|
|
|
183
|
+ if (ApiHkConstant.Code.SUCCESS.equals(resultResDTO.getCode())) {
|
|
|
184
|
+ return resultResDTO.getData();
|
|
|
185
|
+ }
|
|
|
186
|
+ } catch (Exception e) {
|
|
|
187
|
+ log.error("manualCapture error:", e);
|
|
|
188
|
+ }
|
|
|
189
|
+ return null;
|
|
|
190
|
+ }
|
|
170
|
191
|
}
|