2 Commits 23807731bb ... 70823ccf65

Author SHA1 Message Date
  qinchaoyue 70823ccf65 Merge branch 'feature/snapshot' into dev 1 day ago
  qinchaoyue 7b12aea1c2 修复无法新增公告 1 day ago
1 changed files with 2 additions and 0 deletions
  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);
     }