Bladeren bron

返回随手拍功能开关

qinchaoyue 4 maanden geleden
bovenliggende
commit
e8fb4b2c97

+ 2 - 1
src/Hotline.Api/Controllers/IdentityController.cs

@@ -179,7 +179,8 @@ jxrWXHbT1FB6DqkdOnBbQqS1Azqz5HxLlSyEK3F60e3SgB5iZsDZ
             MenuLogoImageMini = menuLogoImageMini,
             IsLoginMessageCode = IsLoginMessageCode,
             AppScope = _appOptions.Value.AppScope,
-            CallCenterType = _appOptions.Value.GetDefaultAppScopeConfiguration().CallCenterType
+            CallCenterType = _appOptions.Value.GetDefaultAppScopeConfiguration().CallCenterType,
+            Snapshot = _systemSettingCacheManager.Snapshot
         };
     }
 

+ 2 - 0
src/Hotline/Caching/Interfaces/ISystemSettingCacheManager.cs

@@ -98,5 +98,7 @@ namespace Hotline.Caching.Interfaces
         /// 天阙推送受理信息接口Url
         /// </summary>
         string TianQuanPostAcceptInfoApi { get; }
+
+        bool Snapshot { get; }
     }
 }

+ 4 - 0
src/Hotline/Caching/Services/SystemSettingCacheManager.cs

@@ -193,5 +193,9 @@ namespace Hotline.Caching.Services
         /// </summary>
         public string TianQuanPostAcceptInfoApi =>
             GetOrDefault("08dcd143-5f4b-477f-80e2-c2326d1d82e8", SettingConstants.TianQuanPostAcceptInfoApi, "天阙推送受理信息API接口地址", "http://10.0.188.11:6090/api/v1/test/accept/saveAcceptInfoApi", "测试: http://10.0.188.11:6090/api/v1/test/accept/saveAcceptInfoApi  正式: http://10.0.188.11:6090/api/v1/prod/accept/saveAcceptInfoApi");
+
+        public bool Snapshot =>
+            GetOrDefault("08dd0eca-66b8-4c98-8dec-0c76c29d77e3", SettingConstants.Snapshot, "随手拍功能开关", true, "随手拍功能开关");
+
     }
 }