feat: 组件模拟数据获取优化,兼容旧地图组件

组件模拟数据获取优化,兼容旧地图组件
main
hong.yang 2 years ago
parent e0944caf9d
commit 69f1c09415

@ -89,7 +89,20 @@ public class ChartDataController {
if (chart instanceof ScreenFlyMapChart) {
ScreenFlyMapChart screenFlyMapChart = (ScreenFlyMapChart) chart;
ScreenFlyMapChart.Customize customize = screenFlyMapChart.getCustomize();
type += "-" + customize.getLevel();
// 兼容旧版地图等级
switch (customize.getLevel()) {
case "0":
type += "-world";
break;
case "1":
type += "-country";
break;
case "2":
type += "-province";
break;
default:
type += "-" + customize.getLevel();
}
}
chartDataVO = ChartMockData.getMockData(type);
}

Loading…
Cancel
Save