Himall商城添加插件信息

///


        /// 添加插件信息
        ///

        ///
        static PluginInfo AddPluginInfo(FileInfo dllFile)
        {
            PluginInfo pluginInfo;
            string pluginId = dllFile.Name.Replace(".dll", "");
            string installedConfigPath = IOHelper.GetMapPath("/plugins/configs/") + pluginId + ".config";
            string webPath = "/plugins/configs/" + pluginId + ".config";
            if (!Himall.Core.HimallIO.ExistFile(webPath))//检查是否已经安装过
            {//未安装过

                //查找插件自带的配置文件
                FileInfo[] configFiles = dllFile.Directory.GetFiles("plugin.config", SearchOption.TopDirectoryOnly);
                if (configFiles.Length > 0)
                {

           

你可能感兴趣的:(himall商城,java,javascript,服务器)