Browse Source

重办报错

田爽 5 tháng trước cách đây
mục cha
commit
12c39db9f5
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/Hotline.Api/Controllers/OrderController.cs

+ 1 - 1
src/Hotline.Api/Controllers/OrderController.cs

@@ -4934,7 +4934,7 @@ public class OrderController : BaseController
         if (dto.Files.Any())
             model.FileJson = await _fileRepository.AddFileAsync(dto.Files, model.Id, "", HttpContext.RequestAborted);
         await _orderSpecialRepository.AddAsync(model, HttpContext.RequestAborted);
-        if (dto.ReTransactError.Any())
+        if (dto.ReTransactError != null && dto.ReTransactError.Any())
         {
             List<OrderSpecialDetail> details = new();
             foreach (var item in dto.ReTransactError)