Browse Source

修改随手拍公告基础数据

qinchaoyue 4 months ago
parent
commit
9d642b54ac

+ 2 - 4
src/Hotline.Api/Controllers/Snapshot/SnapshotBulletinController.cs

@@ -223,7 +223,7 @@ public class SnapshotBulletinController : BaseController
     {
         var rsp = new
         {
-            BulletinType = _systemDicDataCacheManager.GetSysDicDataCache(SysDicTypeConsts.BulletinType)
+            BulletinType = _systemDicDataCacheManager.SnapshotBulletinType
         };
         return rsp;
     }
@@ -238,9 +238,7 @@ public class SnapshotBulletinController : BaseController
     {
         var rsp = new
         {
-            BulletinType = _systemDicDataCacheManager.GetSysDicDataCache(SysDicTypeConsts.BulletinType),
-            BulletinDisplayLocation = _systemDicDataCacheManager.GetSysDicDataCache(SysDicTypeConsts.BulletinDisplayLocation),
-            PushRanges = _systemDicDataCacheManager.GetSysDicDataCache(SysDicTypeConsts.BulletinPushRange),
+            BulletinType = _systemDicDataCacheManager.SnapshotBulletinType,
             OrgsOptions = await _organizeRepository.GetOrgJson(),
         };
         return rsp;