Skip to content

Commit

Permalink
EVM地址判断修复
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhangYiQiu committed Sep 29, 2024
1 parent 5ac0bc0 commit 4b5542b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/TokenPay/BgServices/OrderCheckEVMBaseService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ protected override async Task ExecuteAsync(DateTime RunTime, CancellationToken s
var Down = Move[0]; //上浮金额
var Up = Move[1]; //下浮金额
order = orders.Where(x => RealAmount >= x.Amount - Down && RealAmount <= x.Amount + Up)
.Where(x => x.ToAddress == item.To && x.CreateTime < item.DateTime)
.Where(x => x.ToAddress.ToLower() == item.To.ToLower() && x.CreateTime < item.DateTime)
.OrderByDescending(x => x.CreateTime)//优先付最后一单
.FirstOrDefault();
if (order != null)
Expand Down
2 changes: 1 addition & 1 deletion src/TokenPay/BgServices/OrderCheckEVMERC20Service.cs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ private async Task ERC20(IBaseRepository<TokenOrders> _repository, string Curren
var Down = Move[0]; //上浮金额
var Up = Move[1]; //下浮金额
order = orders.Where(x => item.RealAmount >= x.Amount - Down && item.RealAmount <= x.Amount + Up)
.Where(x => x.ToAddress == item.To && x.CreateTime < item.DateTime)
.Where(x => x.ToAddress.ToLower() == item.To.ToLower() && x.CreateTime < item.DateTime)
.OrderByDescending(x => x.CreateTime)//优先付最后一单
.FirstOrDefault();
if (order != null)
Expand Down

0 comments on commit 4b5542b

Please sign in to comment.