From 4c1d66e191a4a34fde030246c7987ce667b5917f Mon Sep 17 00:00:00 2001 From: "[zhengchao]" <[623591417@qq.com]> Date: Mon, 22 Aug 2016 14:16:07 +0800 Subject: [PATCH] add B3WeChat --- .gitignore | 6 ++ B3WeChat.Web/B3WeChat.Web.csproj | 100 +++++++++++++++++++++++ B3WeChat.Web/Pages/WeChatReceive.cs | 21 +++++ B3WeChat.Web/PluginClass.cs | 17 ++++ B3WeChat.Web/Properties/AssemblyInfo.cs | 36 ++++++++ B3WeChat.sln | 54 ++++++++++++ B3WeChat/B3WeChat.csproj | 76 +++++++++++++++++ B3WeChat/Properties/AssemblyInfo.cs | 39 +++++++++ WebFolder/config/Plugins/B3WeChat.plugin | 20 +++++ 9 files changed, 369 insertions(+) create mode 100644 .gitignore create mode 100644 B3WeChat.Web/B3WeChat.Web.csproj create mode 100644 B3WeChat.Web/Pages/WeChatReceive.cs create mode 100644 B3WeChat.Web/PluginClass.cs create mode 100644 B3WeChat.Web/Properties/AssemblyInfo.cs create mode 100644 B3WeChat.sln create mode 100644 B3WeChat/B3WeChat.csproj create mode 100644 B3WeChat/Properties/AssemblyInfo.cs create mode 100644 WebFolder/config/Plugins/B3WeChat.plugin diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..cf3c90e --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +.* +bin +obj +*.user +*.suo +*.swp diff --git a/B3WeChat.Web/B3WeChat.Web.csproj b/B3WeChat.Web/B3WeChat.Web.csproj new file mode 100644 index 0000000..97c137d --- /dev/null +++ b/B3WeChat.Web/B3WeChat.Web.csproj @@ -0,0 +1,100 @@ + + + + + Debug + AnyCPU + {4A56A7F3-DFF5-4FB0-AE5F-0DEF57E49AB8} + Library + Properties + BWP.Web + B3WeChat.Web + v4.0 + 512 + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + False + ..\..\..\tsref\Debug\B3Frameworks.dll + + + False + ..\..\..\tsref\Debug\B3Frameworks.Web.dll + + + False + ..\..\..\tsref\Debug\B3System.dll + + + False + ..\..\..\tsref\Debug\B3System.Web.dll + + + False + ..\..\..\tsref\Debug\Forks.EnterpriseServices.dll + + + False + ..\..\..\tsref\Debug\Forks.Utils.dll + + + False + ..\..\..\tsref\Debug\MainSystem.dll + + + False + ..\..\..\tsref\Debug\MainSystem.Web.dll + + + + + + + + + + + False + ..\..\..\tsref\Debug\Wpf.dll + + + False + ..\..\..\tsref\Debug\Wpf.System.dll + + + False + ..\..\..\tsref\Debug\Wpf.System.Web.dll + + + + + + + + + + + \ No newline at end of file diff --git a/B3WeChat.Web/Pages/WeChatReceive.cs b/B3WeChat.Web/Pages/WeChatReceive.cs new file mode 100644 index 0000000..faa89f6 --- /dev/null +++ b/B3WeChat.Web/Pages/WeChatReceive.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Web; + +namespace BWP.Web.Pages +{ + class WeChatReceive:IHttpHandler + { + public bool IsReusable + { + get { return true; } + } + + public void ProcessRequest(HttpContext context) + { + context.Response.Write("OK"); + } + } +} diff --git a/B3WeChat.Web/PluginClass.cs b/B3WeChat.Web/PluginClass.cs new file mode 100644 index 0000000..16e7d7e --- /dev/null +++ b/B3WeChat.Web/PluginClass.cs @@ -0,0 +1,17 @@ +using Bwp.Web.Pages; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using TSingSoft.WebPluginFramework; + +namespace BWP.Web +{ + public class PluginClass:IPluginClass + { + public void OnInit() + { + CustomLogin.Register("WeChatReceive.aspx"); + } + } +} diff --git a/B3WeChat.Web/Properties/AssemblyInfo.cs b/B3WeChat.Web/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..0381db1 --- /dev/null +++ b/B3WeChat.Web/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// 有关程序集的常规信息通过以下 +// 特性集控制。更改这些特性值可修改 +// 与程序集关联的信息。 +[assembly: AssemblyTitle("B3WeChat.Web")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("B3WeChat.Web")] +[assembly: AssemblyCopyright("Copyright © 2016")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// 将 ComVisible 设置为 false 使此程序集中的类型 +// 对 COM 组件不可见。 如果需要从 COM 访问此程序集中的类型, +// 则将该类型上的 ComVisible 特性设置为 true。 +[assembly: ComVisible(false)] + +// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID +[assembly: Guid("9288c081-44ab-4e84-908b-c8ec7b20fca0")] + +// 程序集的版本信息由下面四个值组成: +// +// 主版本 +// 次版本 +// 生成号 +// 修订号 +// +// 可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值, +// 方法是按如下所示使用“*”: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/B3WeChat.sln b/B3WeChat.sln new file mode 100644 index 0000000..7dc392c --- /dev/null +++ b/B3WeChat.sln @@ -0,0 +1,54 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2013 +VisualStudioVersion = 12.0.21005.1 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "B3WeChat", "B3WeChat\B3WeChat.csproj", "{9E680662-8323-494F-8140-237DB0A9F0D9}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "B3WeChat.Web", "B3WeChat.Web\B3WeChat.Web.csproj", "{4A56A7F3-DFF5-4FB0-AE5F-0DEF57E49AB8}" +EndProject +Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "WebFolder(17)", "http://localhost:39331", "{3ED5FB57-EE55-43B7-BCB0-CA959C3C9DA7}" + ProjectSection(WebsiteProperties) = preProject + UseIISExpress = "true" + TargetFrameworkMoniker = ".NETFramework,Version%3Dv4.0" + Debug.AspNetCompiler.VirtualPath = "/localhost_39331" + Debug.AspNetCompiler.PhysicalPath = "WebFolder\" + Debug.AspNetCompiler.TargetPath = "PrecompiledWeb\localhost_39331\" + Debug.AspNetCompiler.Updateable = "true" + Debug.AspNetCompiler.ForceOverwrite = "true" + Debug.AspNetCompiler.FixedNames = "false" + Debug.AspNetCompiler.Debug = "True" + Release.AspNetCompiler.VirtualPath = "/localhost_39331" + Release.AspNetCompiler.PhysicalPath = "WebFolder\" + Release.AspNetCompiler.TargetPath = "PrecompiledWeb\localhost_39331\" + Release.AspNetCompiler.Updateable = "true" + Release.AspNetCompiler.ForceOverwrite = "true" + Release.AspNetCompiler.FixedNames = "false" + Release.AspNetCompiler.Debug = "False" + SlnRelativePath = "WebFolder\" + DefaultWebSiteLanguage = "Visual C#" + EndProjectSection +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {9E680662-8323-494F-8140-237DB0A9F0D9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {9E680662-8323-494F-8140-237DB0A9F0D9}.Debug|Any CPU.Build.0 = Debug|Any CPU + {9E680662-8323-494F-8140-237DB0A9F0D9}.Release|Any CPU.ActiveCfg = Release|Any CPU + {9E680662-8323-494F-8140-237DB0A9F0D9}.Release|Any CPU.Build.0 = Release|Any CPU + {4A56A7F3-DFF5-4FB0-AE5F-0DEF57E49AB8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {4A56A7F3-DFF5-4FB0-AE5F-0DEF57E49AB8}.Debug|Any CPU.Build.0 = Debug|Any CPU + {4A56A7F3-DFF5-4FB0-AE5F-0DEF57E49AB8}.Release|Any CPU.ActiveCfg = Release|Any CPU + {4A56A7F3-DFF5-4FB0-AE5F-0DEF57E49AB8}.Release|Any CPU.Build.0 = Release|Any CPU + {3ED5FB57-EE55-43B7-BCB0-CA959C3C9DA7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {3ED5FB57-EE55-43B7-BCB0-CA959C3C9DA7}.Debug|Any CPU.Build.0 = Debug|Any CPU + {3ED5FB57-EE55-43B7-BCB0-CA959C3C9DA7}.Release|Any CPU.ActiveCfg = Debug|Any CPU + {3ED5FB57-EE55-43B7-BCB0-CA959C3C9DA7}.Release|Any CPU.Build.0 = Debug|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/B3WeChat/B3WeChat.csproj b/B3WeChat/B3WeChat.csproj new file mode 100644 index 0000000..2f4161f --- /dev/null +++ b/B3WeChat/B3WeChat.csproj @@ -0,0 +1,76 @@ + + + + + Debug + AnyCPU + {9E680662-8323-494F-8140-237DB0A9F0D9} + Library + Properties + BWP.B3WeChat + B3WeChat + v4.0 + 512 + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + False + ..\..\..\tsref\Debug\B3Frameworks.dll + + + False + ..\..\..\tsref\Debug\B3System.dll + + + False + ..\..\..\tsref\Debug\Forks.EnterpriseServices.dll + + + False + ..\..\..\tsref\Debug\Forks.Utils.dll + + + + + + + + + + False + ..\..\..\tsref\Debug\Wpf.dll + + + False + ..\..\..\tsref\Debug\Wpf.System.dll + + + + + + + + \ No newline at end of file diff --git a/B3WeChat/Properties/AssemblyInfo.cs b/B3WeChat/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..4e20442 --- /dev/null +++ b/B3WeChat/Properties/AssemblyInfo.cs @@ -0,0 +1,39 @@ +using Forks.EnterpriseServices.DomainObjects2; +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// 有关程序集的常规信息通过以下 +// 特性集控制。更改这些特性值可修改 +// 与程序集关联的信息。 +[assembly: AssemblyTitle("B3WeChat")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("B3WeChat")] +[assembly: AssemblyCopyright("Copyright © 2016")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// 将 ComVisible 设置为 false 使此程序集中的类型 +// 对 COM 组件不可见。 如果需要从 COM 访问此程序集中的类型, +// 则将该类型上的 ComVisible 特性设置为 true。 +[assembly: ComVisible(false)] + +// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID +[assembly: Guid("85868d41-1cce-4090-8197-fb11951fcc31")] + +// 程序集的版本信息由下面四个值组成: +// +// 主版本 +// 次版本 +// 生成号 +// 修订号 +// +// 可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值, +// 方法是按如下所示使用“*”: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] + +[assembly: AssemblyMapToTablePrefix("B3UnitedInfos_")] diff --git a/WebFolder/config/Plugins/B3WeChat.plugin b/WebFolder/config/Plugins/B3WeChat.plugin new file mode 100644 index 0000000..ead36a8 --- /dev/null +++ b/WebFolder/config/Plugins/B3WeChat.plugin @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + +