Browse Source

修复短信回复信息

tangjiang 1 tuần trước cách đây
mục cha
commit
a420f3f128
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      src/Hotline/Push/FWMessage/PushDomainService.cs

+ 3 - 1
src/Hotline/Push/FWMessage/PushDomainService.cs

@@ -145,6 +145,8 @@ public class PushDomainService : IPushDomainService, IScopeDependency
                     }
                     else
                         data.Status = EPushStatus.Failed;
+
+                    await _messageRepository.UpdateAsync(data, cancellation);
                 }
                 else if (dto.Type == "1")
                 {
@@ -152,8 +154,8 @@ public class PushDomainService : IPushDomainService, IScopeDependency
                     data.SendState = dto.SendState;
                     data.MsgCount = dto.MsgCount;
                     data.SmsSendingCompletedId = dto.SmsSendingCompletedId;
+                    await _messageRepository.UpdateAsync(data, cancellation);
                 }
-                await _messageRepository.UpdateAsync(data, cancellation);
             }
         }
         else if (dto.Type == "2")