Dun.Jason преди 1 година
родител
ревизия
be54b7d461
променени са 2 файла, в които са добавени 6 реда и са изтрити 0 реда
  1. 1 0
      src/Hotline.Api/Controllers/HomeController.cs
  2. 5 0
      src/XF.Domain/Constants/SettingConstants.cs

+ 1 - 0
src/Hotline.Api/Controllers/HomeController.cs

@@ -170,6 +170,7 @@ public class HomeController : BaseController
             IsNeedTelNo = bool.Parse(_systemSettingCacheManager.GetSetting(SettingConstants.IsNeedTelNo).SettingValue[0]),
             IsTelNeedVerify = bool.Parse(_systemSettingCacheManager.GetSetting(SettingConstants.IsTelNeedVerify).SettingValue[0]),
             TalkingDealTime = int.Parse(_systemSettingCacheManager.GetSetting(SettingConstants.TalkingDealTime).SettingValue[0]),
+            IsCustomEvent = bool.Parse(_systemSettingCacheManager.GetSetting(SettingConstants.IsCustomEvent).SettingValue[0]),
         };
         return rsp;
     }

+ 5 - 0
src/XF.Domain/Constants/SettingConstants.cs

@@ -101,5 +101,10 @@ namespace XF.Domain.Constants
         /// 队列数
         /// </summary>
         public const string QueueNum = "QueueNum";
+
+        /// <summary>
+        /// 是否启用自定义事件
+        /// </summary>
+        public const string IsCustomEvent = "IsCustomEvent";
     }
 }