|
@@ -630,7 +630,7 @@ public class SceneFileBuildServiceImpl extends ServiceImpl<ISceneFileBuildMapper
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public ResultData uploadSuccessBuild(String params) throws Exception {
|
|
|
+ public ResultData uploadSuccessBuild(String params, String taskId, String kNo) throws Exception {
|
|
|
log.info("uploadSuccessBuild-params: " + params);
|
|
|
String preParams = params;
|
|
|
if (StringUtils.isEmpty(params)) {
|
|
@@ -683,8 +683,29 @@ public class SceneFileBuildServiceImpl extends ServiceImpl<ISceneFileBuildMapper
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ int camType = fdageJson.getJSONObject("cam").getIntValue("type");
|
|
|
+ if(camType == 5){
|
|
|
+ cameraType = 6L;//圆周率
|
|
|
+ }
|
|
|
+
|
|
|
+ fdageJson.put("taskId", taskId);
|
|
|
+ fdageJson.put("kNo", kNo);
|
|
|
+
|
|
|
this.removeUpdateV4(ConstantFilePath.OSS_PREFIX + prefixBuffer + "data.fdage", fdageJson);
|
|
|
|
|
|
+ //调用接口入库
|
|
|
+ Map<String, Object> signPlayload = new HashMap<>();
|
|
|
+ signPlayload.put("appId", "ucenter");
|
|
|
+ signPlayload.put("timestamp", Calendar.getInstance().getTimeInMillis());
|
|
|
+ String sign = RsaUtils.encipher(JSON.toJSONString(signPlayload), RsaUtils.publicKey);
|
|
|
+ JSONObject cameraInStoreParams = new JSONObject();
|
|
|
+ cameraInStoreParams.put("cameraType", camType);
|
|
|
+ cameraInStoreParams.put("snCode", mac);
|
|
|
+ ResultData resultData = httpClient.postJson("http://127.0.0.1:8081/ucenter/_inner/cameraInStore", sign, cameraInStoreParams);
|
|
|
+ Object data = resultData.getData();
|
|
|
+ Long cameraId = ((JSONObject)data).getLong("id");
|
|
|
+ log.info("自动入库,cameraId:{}", cameraId);
|
|
|
+
|
|
|
// 判断是否是V3的场景
|
|
|
ScenePro scenePro = sceneProService.getOne(
|
|
|
new LambdaQueryWrapper<ScenePro>().like(ScenePro::getDataSource, "/".concat(fileId).concat("/")));
|