chore(begin-route): 更新车辆图标并添加调试日志
- 替换车辆定位标记的图标资源链接
- 增加温度查询接口返回值的日志输出
| | |
| | | // setTempStatus(26); |
| | | // lastConfirmedTempRef.current = 26; |
| | | queryTemperatureByOrderId({ orderId: targetOrderId }).then((res: any) => { |
| | | console.log('查询车辆温度:', res); |
| | | const currentTemperature = Number(res); |
| | | if (!Number.isNaN(currentTemperature)) { |
| | | setTempStatus(currentTemperature); |
| | |
| | | id: vehicleMarkerId, |
| | | latitude: vehicleLocation.latitude, |
| | | longitude: vehicleLocation.longitude, |
| | | iconPath: 'https://huishou-1323682843.cos.ap-nanjing.myqcloud.com/images/e51e92e6-700d-4e83-b3e0-14e6f18e0b9a.png', |
| | | iconPath: 'https://huishou-1323682843.cos.ap-nanjing.myqcloud.com/images/e8c34535-f297-43da-8ab9-97f55939c0ae.png', |
| | | width: 40, |
| | | height: 20, |
| | | anchor: { x: 0.5, y: 0.5 }, |