【优化】调整运费计算逻辑为异步处理。

This commit is contained in:
jianweie code
2023-04-03 02:30:16 +08:00
parent a87569c36d
commit 8b7377de63
5 changed files with 19 additions and 17 deletions

View File

@@ -59,7 +59,7 @@ namespace CoreCms.Net.IServices
/// <param name="weight">重量,单位g</param>
/// <param name="totalmoney">商品总价</param>
/// <returns></returns>
decimal GetShipCost(int areaId = 0, decimal weight = 0, decimal totalmoney = 0);
Task<decimal> GetShipCost(int areaId = 0, decimal weight = 0, decimal totalmoney = 0);
/// <summary>
@@ -75,7 +75,7 @@ namespace CoreCms.Net.IServices
/// <summary>
/// 根据地区获取配送方式
/// </summary>
CoreCmsShip GetShip(int areaId = 0);
Task<CoreCmsShip> GetShip(int areaId = 0);
#region ===========================================================