Commit eca18a6b by 翟柏林

添加坐标异常参数的处理

1 parent f31cf3a0
...@@ -22,6 +22,9 @@ public class MainController { ...@@ -22,6 +22,9 @@ public class MainController {
@PostMapping("/heatMapTransAxis") @PostMapping("/heatMapTransAxis")
public Point heatMapTransAxis(@RequestBody HeatMapRequestEntity entity) { public Point heatMapTransAxis(@RequestBody HeatMapRequestEntity entity) {
if(entity.getCameraPoints().length!=entity.getMapPoints().length){
return entity.getInputPoint();
}
return HeatMapUtil.transAxis(entity.getCameraType(), entity.getCenterPoint(), entity.getMarginPoint(), entity.getCameraPoints(), entity.getMapPoints(), entity.getInputPoint()); return HeatMapUtil.transAxis(entity.getCameraType(), entity.getCenterPoint(), entity.getMarginPoint(), entity.getCameraPoints(), entity.getMapPoints(), entity.getInputPoint());
} }
} }
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!