【修复】修复同城配送坐标计算错误的问题。

This commit is contained in:
jianweie code
2024-08-30 21:29:36 +08:00
parent 04f2ff5d36
commit 780a3f43ca

View File

@@ -780,18 +780,18 @@ namespace CoreCms.Net.Services
{
cartDto.costFreight = 0;
}
cartDto.error = new WebApiCallBack()
{
status = true,
msg = "运费计算成功",
data = result,
otherData = new
{
userShiplatitude = userShip.latitude,
userShiplongitude = userShip.longitude,
reshipCoordinate
}
};
//cartDto.error = new WebApiCallBack()
//{
// status = true,
// msg = "运费计算成功",
// data = result,
// otherData = new
// {
// userShiplatitude = userShip.latitude,
// userShiplongitude = userShip.longitude,
// reshipCoordinate
// }
//};
cartDto.amount = Math.Round(cartDto.amount + cartDto.costFreight, 2);
}