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

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.costFreight = 0;
} }
cartDto.error = new WebApiCallBack() //cartDto.error = new WebApiCallBack()
{ //{
status = true, // status = true,
msg = "运费计算成功", // msg = "运费计算成功",
data = result, // data = result,
otherData = new // otherData = new
{ // {
userShiplatitude = userShip.latitude, // userShiplatitude = userShip.latitude,
userShiplongitude = userShip.longitude, // userShiplongitude = userShip.longitude,
reshipCoordinate // reshipCoordinate
} // }
}; //};
cartDto.amount = Math.Round(cartDto.amount + cartDto.costFreight, 2); cartDto.amount = Math.Round(cartDto.amount + cartDto.costFreight, 2);
} }