更新配置

This commit is contained in:
2026-04-20 09:23:36 +08:00
parent 8e79d8039c
commit 0a2c7683b7
4 changed files with 39 additions and 20 deletions

View File

@@ -127,10 +127,9 @@ public class NativeMapView implements PlatformView, LocationSource, AMapLocation
private String token;
private String plateNumber;
// private String mDebugUrl = "https://beta-esg.api.lnh2e.com/appointment/";
// private String mDebugUrl = "https://beta-esg.api.lnh2e.com/appointment/";
//线上环境
private String mDebugUrl = "http://47.101.201.13:8443/api/appointment/";
private String mReleaseUrl = "http://47.101.201.13:8443/api/";
// 存储货车路线算法接口返回的数据
private TruckRouteData truckRouteData;
@@ -577,7 +576,6 @@ public class NativeMapView implements PlatformView, LocationSource, AMapLocation
tvPhone.setText("联系方式:" + liaisonPhone);
aMap.animateCamera(CameraUpdateFactory.newLatLngZoom(endPoint, 13f));
@@ -745,7 +743,7 @@ public class NativeMapView implements PlatformView, LocationSource, AMapLocation
*/
private void fetchTruckRouteAlgorithm(AMapLocation loc) {
if (plateNumber == null || plateNumber.isEmpty()) {
Toast.makeText(mActivity,"请先绑定车辆后进行导航",Toast.LENGTH_SHORT).show();
Toast.makeText(mActivity, "请先绑定车辆后进行导航", Toast.LENGTH_SHORT).show();
return;
}
showLoading();
@@ -932,7 +930,7 @@ public class NativeMapView implements PlatformView, LocationSource, AMapLocation
// 简化逻辑,直接设置文本
endInput.post(() -> {
try {
endInput.setText(district != null && !district.isEmpty() ? (name + " " + district ): name);
endInput.setText(district != null && !district.isEmpty() ? (name + " " + district) : name);
} catch (Exception e) {
Log.e(TAG, "Failed to set text to endInput", e);
}