diff --git a/B3WeChat.Web/PluginClass.cs b/B3WeChat.Web/PluginClass.cs index 7b489a4..7142145 100644 --- a/B3WeChat.Web/PluginClass.cs +++ b/B3WeChat.Web/PluginClass.cs @@ -8,6 +8,7 @@ using Forks.Utils; using System; using System.Collections.Generic; using TSingSoft.WebPluginFramework; +using System.Linq; namespace BWP.Web { @@ -41,6 +42,12 @@ namespace BWP.Web public void OnInit() { + if (PluginManager.Current.Plugins.Any((p) => p.Name == "B3UnitedInfos")) + { + throw new Exception("业务系统中不应该安装微信模块"); + } + + CustomLogin.Register("WeChatReceive.aspx"); CustomLogin.Register("WeChatLogin.aspx"); var roleSchemas = Wpf.Settings.RoleSchemas;