全部
This commit is contained in:
@ -150,10 +150,10 @@ public class GraphHopperController {
|
||||
public ApiResponse calculateRoute(@RequestBody RouteRequest request) {
|
||||
// 区分未加载地图和加载中两种状态
|
||||
if (isLoading.get()) {
|
||||
return ApiResponse.failure("地图正在加载中,请稍后再试");
|
||||
return ApiResponse.failure("地图正在加载中、请稍后再试");
|
||||
}
|
||||
if (!isLoaded.get() || currentHopper == null) {
|
||||
return ApiResponse.failure("地图未加载,请先加载地图");
|
||||
return ApiResponse.failure("地图未加载、请先加载地图");
|
||||
}
|
||||
try {
|
||||
// 构建路径点列表
|
||||
|
||||
Reference in New Issue
Block a user