【优化】优化使用部分积分加金额购买,申请售后回退积分的处理,增加精度到4位,减少误差。

This commit is contained in:
大灰灰
2022-09-28 23:59:55 +08:00
parent 5efd1dea26
commit c514bef193
5 changed files with 57 additions and 36 deletions

View File

@@ -83,7 +83,7 @@ namespace CoreCms.Net.Model.ViewModels.DTO
/// <summary>
/// 积分可以抵扣多少金额
/// </summary>
public int pointExchangeMoney { get; set; } = 0;
public decimal pointExchangeMoney { get; set; } = 0;
public List<CartProducts> list { get; set; } = new();

View File

@@ -20,8 +20,8 @@ namespace CoreCms.Net.Model.ViewModels.DTO
public class GetUserPointResult
{
public int availablePoint { get; set; } = 0;
public int pointExchangeMoney { get; set; } = 0;
public decimal pointExchangeMoney { get; set; } = 0;
public int @switch { get; set; } = 1;
public int point { get; set; } = 0;