xiangpei
2024-10-10 8fa931b74e07ea783fa453367174f8b012e7bc52
ycl-server/src/main/java/com/ycl/platform/service/impl/WorkOrderServiceImpl.java
@@ -766,8 +766,11 @@
    public synchronized String getFrameImgByDevice(String deviceId, String channelId, String workOrderNo) throws Exception {
        String url = String.format(this.rtspServer + "/api/play/start/img/%s/%s", deviceId, channelId);
        String result = HttpUtils.sendGet(url);
        log.info("拿到取流图片响应结果:" + result);
        return result;
        JSONObject jsonObject = JSON.parseObject(result);
        Object imgUrl = jsonObject.get("data");
        imgUrl = Objects.isNull(imgUrl) ? "" : imgUrl;
        log.info("拿到取流图片响应结果:" + imgUrl);
        return (String) imgUrl;
//        WVPResult wvpResult = JSON.parseObject(result, WVPResult.class);
//        String imgUrl = null;
//        if (wvpResult.getCode() == 0) {