| | |
| | | //6.马头门罐笼摇台状态识别信息 |
| | | //7.摄像头遮挡、挪动角度识别信息 |
| | | public static void cameraAiError() throws ParseException { |
| | | SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmss"); |
| | | SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmssSSS"); |
| | | //查询出所以未传输的报警 |
| | | Collection<String> keys = redisCache.keys("video_*"); |
| | | for (String key : keys) { |
| | |
| | | .sslSocketFactory(sslSocketFactory, (X509TrustManager) trustAllCerts[0]) |
| | | .hostnameVerifier((hostname, session) -> true) // 信任所有主机名 |
| | | .build(); |
| | | String fileUrl=paramJson.getString("file"); |
| | | String fileUrlQ=paramJson.getString("file"); |
| | | String fileUrl=fileUrlQ.replaceAll("/","\\\\"); |
| | | File file = new File(fileUrl); |
| | | //fileUrl.split("\\"); |
| | | |
| | | //fileUrl.split("\\");SSS |
| | | String[] fileName=fileUrl.split("\\\\"); |
| | | |
| | | String fileNameQ=fileName[fileName.length-1]; |
| | | |
| | | RequestBody body = new MultipartBody.Builder() |
| | | .setType(MultipartBody.FORM) |
| | |
| | | .addFormDataPart("pdt", params.get("pdt")) |
| | | .addFormDataPart("data", params.get("data")) |
| | | |
| | | .addFormDataPart("file", fileName[fileName.length-1], |
| | | .addFormDataPart("file", fileNameQ, |
| | | RequestBody.create(MediaType.parse("application/octet-stream"), |
| | | file)) |
| | | .build(); |