支付bug fixed

develop
old易 2024-01-22 16:17:35 +08:00
parent fea1941611
commit 47c553b319
1 changed files with 2 additions and 2 deletions

View File

@ -336,11 +336,11 @@ namespace New_College.Services
if (cc)
{
var oldorderlist = await _dal.Query(c => c.Id != model.Id && c.CustomerId == model.CustomerId);
oldorderlist.ForEach(c =>
oldorderlist.ForEach(async c =>
{
c.Status = EnumOrderType.Cancel;
await _dal.Update(c);
});
await _dal.Update(oldorderlist);
_unitOfWork.CommitTran();
status = true;