Bladeren bron

Merge branch 'feature/snapshot' into test

qinchaoyue 1 dag geleden
bovenliggende
commit
cc4453f532
1 gewijzigde bestanden met toevoegingen van 2 en 0 verwijderingen
  1. 2 0
      src/Hotline.Application/Snapshot/SnapshotBulletinApplication.cs

+ 2 - 0
src/Hotline.Application/Snapshot/SnapshotBulletinApplication.cs

@@ -187,6 +187,8 @@ public class SnapshotBulletinApplication : ISnapshotBulletinApplication, IScopeD
         var model = dto.Adapt<SnapshotBulletin>();
         model.BulletinState = EBulletinState.Draft;
         model.ReadedNum = 0;
+        if (model.Content.IsNullOrEmpty())
+            model.Content = " ";
         if (model.BulletinTime.HasValue == false) model.BulletinTime = DateTime.Now;
         return await _bulletinRepository.AddAsync(model, token);
     }