Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Developer #10

Merged
merged 41 commits into from
Dec 31, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
a5c357d
Merge pull request #2254 from JeffreySu/Developer
JeffreySu Oct 13, 2020
5294967
Merge pull request #2255 from JeffreySu/Developer
JeffreySu Oct 13, 2020
381815b
Merge pull request #2256 from JeffreySu/Developer
JeffreySu Oct 13, 2020
64553f3
Merge pull request #2259 from JeffreySu/Developer
JeffreySu Oct 16, 2020
fa072a3
Merge pull request #2260 from JeffreySu/Developer
JeffreySu Oct 16, 2020
647c81a
Merge pull request #6 from JeffreySu/Developer
gokeiyou Oct 23, 2020
5bac7e4
运行公众号菜单单元测试
JeffreySu Nov 2, 2020
e8f06e9
清理代码,准备开始 .NET 5 兼容测试
JeffreySu Nov 5, 2020
c96bda7
Merge pull request #2265 from JeffreySu/Developer
JeffreySu Nov 5, 2020
fba3dc0
更新公告
JeffreySu Nov 10, 2020
c67dd92
Merge pull request #2266 from JeffreySu/Developer
JeffreySu Nov 10, 2020
45f4bd2
优化文件过滤规则
JeffreySu Nov 11, 2020
958269e
Merge pull request #2267 from JeffreySu/Developer
JeffreySu Nov 11, 2020
4606970
Merge pull request #16 from JeffreySu/Developer
lishewen Nov 18, 2020
853ade6
新增 风险用户扫描 接口
lishewen Nov 18, 2020
b00ffd0
Merge pull request #2270 from lishewen/Developer
JeffreySu Nov 23, 2020
a22271a
WxOpen v3.8.602 添加【风险用户扫描】接口:Senparc.Weixin.WxOpen.AdvancedAPIs.WxApp…
JeffreySu Dec 9, 2020
3ada165
Merge pull request #2274 from JeffreySu/Developer
JeffreySu Dec 9, 2020
078897a
企业微信返回码补充
Billzjh Dec 9, 2020
3f1c829
添加企业微信通过二维码注册成功后事件
Billzjh Dec 9, 2020
20f7bd3
更新 NeuChar 基础库
JeffreySu Dec 9, 2020
784dd4f
更新版本号
JeffreySu Dec 9, 2020
08e5ac3
TenPay v1.6.100 更新 TenPayV3UnifiedorderRequestData 构造函数,version 为空时忽略…
JeffreySu Dec 9, 2020
6aa60f0
Tenpay v1.6.101 #2279 #2151
JeffreySu Dec 10, 2020
b9b7046
引用新版本 NeuChar,更新版本号
JeffreySu Dec 10, 2020
8e0d2bf
Merge pull request #2276 from Billzjh/Senparc.Weixin.Work
JeffreySu Dec 10, 2020
99840bd
Merge branch 'Developer' of https://github.com/JeffreySu/WeiXinMPSDK …
JeffreySu Dec 10, 2020
44de718
更新 RequestMessager_Register_Corp.cs 注释 #2276
JeffreySu Dec 10, 2020
5ce8922
更新 WorkMessageHandler 注释
JeffreySu Dec 10, 2020
9cb5b85
v6.8.101 完善 ReturnCode_Work 枚举类型 #2276 感谢 @Billzjh
JeffreySu Dec 10, 2020
9c4f9a6
v1.6.101.1 修改 TenPayV3Type 过期提示
JeffreySu Dec 11, 2020
fd8a48e
完善注释,更新 Sample 版本号
JeffreySu Dec 14, 2020
82d766b
modify
JeffreySu Dec 21, 2020
b059a4a
Merge pull request #2261 from gokeiyou/supplement
JeffreySu Dec 30, 2020
0352dde
Merge branch 'Developer' of https://github.com/JeffreySu/WeiXinMPSDK …
JeffreySu Dec 30, 2020
257625c
#2261 添加注释
JeffreySu Dec 30, 2020
bf0ea1d
添加更新日志 - Senparc.Weixin.WxOpen.Register.cs #2261
JeffreySu Dec 30, 2020
ba9c503
更改测试文件路径,主要属于WxOpen的测试内容 #2261
JeffreySu Dec 30, 2020
a052618
添加注释 #2261
JeffreySu Dec 30, 2020
53637f3
WxOpen v3.10.101 新增 WxOpen 专属 AccessTokenContainer,解决没有提供 name 参数的情况下…
JeffreySu Dec 30, 2020
4c4cb53
Merge pull request #9 from JeffreySu/Developer
gokeiyou Dec 31, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.SignalR" Version="1.1.0" />
<PackageReference Include="Senparc.NeuChar" Version="1.2.201" />
<PackageReference Include="Senparc.NeuChar" Version="1.3.200" />
<PackageReference Include="System.Diagnostics.FileVersionInfo" Version="4.3.0" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<Version>5.600.7</Version>
<Version>5.600.8</Version>
</PropertyGroup>

<ItemGroup>
Expand Down Expand Up @@ -39,8 +39,8 @@
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="3.1.0" />
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="3.1.1" />
<PackageReference Include="Senparc.NeuChar.App" Version="0.8.200" />
<PackageReference Include="Senparc.NeuChar.AspNet" Version="0.2.200" />
<PackageReference Include="Senparc.NeuChar.App" Version="0.9.200" />
<PackageReference Include="Senparc.NeuChar.AspNet" Version="0.3.200" />
<PackageReference Include="System.Drawing.Common" Version="4.7.0" />
<PackageReference Include="System.IO.Compression.ZipFile" Version="4.3.0" />
<PackageReference Include="ZXing.Net" Version="0.16.4" />
Expand Down
11 changes: 8 additions & 3 deletions Samples/netcore3.0-mvc/Senparc.Weixin.Sample.NetCore3/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env,
{
app.UseEnyimMemcached();
weixinRegister.UseSenparcWeixinCacheMemcached();
} // DPBMARK_END
} // DPBMARK_END

#endregion

Expand All @@ -227,7 +227,7 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env,
weixinRegister
//注册公众号(可注册多个) -- DPBMARK MP

.RegisterMpAccount(senparcWeixinSetting.Value, "【盛派网络小助手】公众号")// DPBMARK_END
.RegisterMpAccount(senparcWeixinSetting.Value, "【盛派网络小助手】公众号") // DPBMARK_END


//注册多个公众号或小程序(可注册多个) -- DPBMARK MiniProgram
Expand Down Expand Up @@ -352,7 +352,12 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env,
//使用公众号的 MessageHandler 中间件(不再需要创建 Controller) --DPBMARK MP
app.UseMessageHandlerForMp("/WeixinAsync", CustomMessageHandler.GenerateMessageHandler, options =>
{
//说明:此代码块中演示了较为全面的功能点,简化的使用可以参考下面小程序和企业微信
/* 说明:
* 1、此代码块中演示了较为全面的功能点,简化的使用可以参考下面小程序和企业微信
* 2、使用中间件也支持多账号,可以使用 URL 添加参数的方式(如:/Weixin?id=1),
* 在options.AccountSettingFunc = context => {...} 中,从 context.Request 中获取 [id] 值,
* 并反馈对应的 senparcWeixinSetting 信息
*/

#region 配置 SenparcWeixinSetting 参数,以自动提供 Token、EncodingAESKey 等参数

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@
@*<span>2017年6月16日已发布新版本,改进诸多功能,并发布企业微信(Senparc.Weixin.Work)测试版,支持 .net core / .net 4.5。<a href="http://mp.weixin.qq.com/s/G77RaeYnVuk9zciNrop9aA" target="_blank">点击这里查看</a>。</span>*@
@*<span>Senparc 官方微信开发教程《微信开发深度解析:公众号、小程序高效开发秘籍》已经出版,<a href="https://book.weixin.senparc.com/book/link?code=sdk-banner" target="_blank">点击这里购买正版</a>。</span>*@
<span>
Senparc 官方微信开发视频教程《微信公众号+小程序快速开发(一)》已全部上线,<a href="https://book.weixin.senparc.com/book/videolinknetease?code=sdk-banner" target="_blank">【点击这开始学习】</a>。<br />
Senparc 官方微信开发教程《微信开发深度解析:公众号、小程序高效开发秘籍》已经出版(已第 8 次印刷),<a href="https://book.weixin.senparc.com/book/link?code=sdk-banner" target="_blank">【点击这里购买正版】</a>。<br />
Sample 项目自动生成工具 v1.6 正式版已发布。<a href="@Url.Action("WeChatSampleBuilder","Home")">【点击这里查看】</a>。<br />
Senparc 官方微信开发视频教程《微信公众号+小程序快速开发》已经上线,陆续更新中,<a href="https://book.weixin.senparc.com/book/videolinknetease?code=sdk-banner" target="_blank">【点击这开始学习】</a>。<br />
Senparc 官方微信开发教程《微信开发深度解析:公众号、小程序高效开发秘籍》已经出版(已第 4 次印刷),<a href="https://book.weixin.senparc.com/book/link?code=sdk-banner" target="_blank">【点击这里购买正版】</a>。<br />
</span>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using Microsoft.AspNetCore.SignalR;
//DPBMARK_FILE WebSocket

using Microsoft.AspNetCore.SignalR;
using Senparc.WebSocket.SignalR;
using System.Threading.Tasks;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net45;netstandard2.0;netstandard2.1;netcoreapp3.1</TargetFrameworks>
<Version>0.10.600</Version>
<Version>0.11.101</Version>
<AssemblyName>Senparc.WebSocket</AssemblyName>
<RootNamespace>Senparc.WebSocket</RootNamespace>
<GeneratePackageOnBuild Condition=" '$(Configuration)' == 'Release' ">true</GeneratePackageOnBuild>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net45;netstandard2.0;netstandard2.1;netcoreapp3.1</TargetFrameworks>
<Version>0.1.600</Version>
<Version>0.2.101</Version>
<AssemblyName>Senparc.Weixin.AspNet</AssemblyName>
<RootNamespace>Senparc.Weixin.AspNet</RootNamespace>
<GeneratePackageOnBuild Condition=" '$(Configuration)' == 'Release' ">true</GeneratePackageOnBuild>
Expand Down Expand Up @@ -82,7 +82,7 @@
<FrameworkReference Include="Microsoft.AspNetCore.App" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Senparc.NeuChar.AspNet" Version="0.2.200" />
<PackageReference Include="Senparc.NeuChar.AspNet" Version="0.3.200" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Senparc.Weixin\Senparc.Weixin\Senparc.Weixin.netcore3.csproj" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net45;net461;netstandard2.0;netstandard2.1</TargetFrameworks>
<Version>0.1.600</Version>
<Version>0.2.101</Version>
<AssemblyName>Senparc.Weixin.Cache.CsRedis</AssemblyName>
<RootNamespace>Senparc.Weixin.Cache.CsRedis</RootNamespace>
<GeneratePackageOnBuild Condition=" '$(Configuration)' == 'Release' ">true</GeneratePackageOnBuild>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net45;netstandard2.0;netstandard2.1</TargetFrameworks>
<Version>2.6.600</Version>
<Version>2.7.101</Version>
<AssemblyName>Senparc.Weixin.Cache.Memcached</AssemblyName>
<RootNamespace>Senparc.Weixin.Cache.Memcached</RootNamespace>
<Description>微信公众账号 - Memcached 模块
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net45;net461;netstandard2.0;netstandard2.1</TargetFrameworks>
<Version>2.8.600</Version>
<Version>2.9.101</Version>
<AssemblyName>Senparc.Weixin.Cache.Redis</AssemblyName>
<RootNamespace>Senparc.Weixin.Cache.Redis</RootNamespace>
<GeneratePackageOnBuild Condition=" '$(Configuration)' == 'Release' ">true</GeneratePackageOnBuild>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net45;netstandard2.0;netstandard2.1;netcoreapp3.1</TargetFrameworks>
<Version>0.1.600</Version>
<Version>0.2.101</Version>
<AssemblyName>Senparc.Weixin.MP.Middleware</AssemblyName>
<RootNamespace>Senparc.Weixin.MP.Middleware</RootNamespace>
<GeneratePackageOnBuild Condition=" '$(Configuration)' == 'Release' ">true</GeneratePackageOnBuild>
Expand Down Expand Up @@ -82,7 +82,7 @@
<FrameworkReference Include="Microsoft.AspNetCore.App" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Senparc.NeuChar.AspNet" Version="0.2.200" />
<PackageReference Include="Senparc.NeuChar.AspNet" Version="0.3.200" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Senparc.Weixin.MP\Senparc.Weixin.MP\Senparc.Weixin.MP.netcore3.csproj" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net45;netstandard2.0;netstandard2.1;netcoreapp3.1</TargetFrameworks>
<Version>7.5.600</Version>
<Version>7.6.101</Version>
<AssemblyName>Senparc.Weixin.MP.MvcExtension</AssemblyName>
<RootNamespace>Senparc.Weixin.MP.MvcExtension</RootNamespace>
<GeneratePackageOnBuild Condition=" '$(Configuration)' == 'Release' ">true</GeneratePackageOnBuild>
Expand Down Expand Up @@ -163,7 +163,7 @@
<PackageReference Include="System.Xml.XPath.XmlDocument" Version="4.3.0" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Senparc.NeuChar" Version="1.2.201" />
<PackageReference Include="Senparc.NeuChar" Version="1.3.200" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\Senparc.Weixin.AspNet\Senparc.Weixin.AspNet.netcore3.csproj" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,9 @@ namespace Senparc.Weixin.MP.Test.CommonAPIs
{
public partial class CommonApiTest
{
[TestMethod]
//[TestMethod]//已经通过测试
public void CreateMenuTest()
{
return;//已经通过测试

//var accessToken = AccessTokenContainer.GetAccessToken(_appId);

ButtonGroup bg = new ButtonGroup();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ and limitations under the License.
namespace Senparc.Weixin.MP.Test.CommonAPIs
{
//已通过测试
//[TestClass]
[TestClass]
public partial class CommonApiTest : BaseTest
{
private dynamic _appConfig;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ and limitations under the License.
using Senparc.Weixin.MP.Entities;
using Senparc.Weixin.MP.Entities.Request;
using Senparc.Weixin.MP.MessageHandlers;
using Senparc.WeixinTests;

namespace Senparc.Weixin.MP.Test.MessageHandlers
{
Expand All @@ -34,12 +35,12 @@ public class OmitRepeatMessageMessageHandlers : MessageHandler<MessageContexts.D
public string RunStep { get; set; }


public OmitRepeatMessageMessageHandlers(XDocument requestDoc,PostModel postModel)
public OmitRepeatMessageMessageHandlers(XDocument requestDoc, PostModel postModel)
: base(requestDoc, postModel)
{
}



public override IResponseMessageBase OnTextRequest(RequestMessageText requestMessage)
{
Expand All @@ -62,7 +63,7 @@ public override IResponseMessageBase DefaultResponseMessage(IRequestMessageBase
}

[TestClass]
public class MessageHandlers_OmitRepeatMessage
public class MessageHandlers_OmitRepeatMessage : BaseTest
{
string xmlText = @"<?xml version=""1.0"" encoding=""utf-8""?>
<xml>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,45 +118,9 @@ namespace Senparc.Weixin.MP.Containers
public class AccessTokenBag : BaseContainerBag, IBaseContainerBag_AppId
{
public string AppId { get; set; }
// {
// get { return _appId; }
//#if NET35 || NET40
// set { this.SetContainerProperty(ref _appId, value, "AppId"); }
//#else
// set { this.SetContainerProperty(ref _appId, value); }
//#endif
// }

public string AppSecret { get; set; }
// {
// get { return _appSecret; }
//#if NET35 || NET40
// set { this.SetContainerProperty(ref _appSecret, value, "AppSecret"); }
//#else
// set { this.SetContainerProperty(ref _appSecret, value); }
//#endif
// }

public DateTimeOffset AccessTokenExpireTime { get; set; }
// {
// get { return _accessTokenExpireTime; }
//#if NET35 || NET40
// set { this.SetContainerProperty(ref _accessTokenExpireTime, value, "AccessTokenExpireTime"); }
//#else
// set { this.SetContainerProperty(ref _accessTokenExpireTime, value); }
//#endif
// }

public AccessTokenResult AccessTokenResult { get; set; }
// {
// get { return _accessTokenResult; }
//#if NET35 || NET40
// set { this.SetContainerProperty(ref _accessTokenResult, value, "AccessTokenResult"); }
//#else
// set { this.SetContainerProperty(ref _accessTokenResult, value); }
//#endif
// }

//private AccessTokenResult _accessTokenResult;
//private DateTimeOffset _accessTokenExpireTime;
//private string _appSecret;
Expand Down Expand Up @@ -286,6 +250,10 @@ public static async Task RegisterAsync(string appId, string appSecret, string na

if (!name.IsNullOrEmpty())
{
/*
* 注意:此处会修改全局的 WeixinAppId 和 WeixinAppSecret 的值,如果小程序从这里注册(并且没有提供 name),就会影响到公众号的参数
* https://github.com/JeffreySu/WeiXinMPSDK/pull/2261/files
*/
Senparc.Weixin.Config.SenparcWeixinSetting.Items[name].WeixinAppId = appId;
Senparc.Weixin.Config.SenparcWeixinSetting.Items[name].WeixinAppSecret = appSecret;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,43 +100,9 @@ namespace Senparc.Weixin.MP.Containers
public class JsApiTicketBag : BaseContainerBag, IBaseContainerBag_AppId
{
public string AppId { get; set; }
// {
// get { return _appId; }
//#if NET35 || NET40
// set { this.SetContainerProperty(ref _appId, value, "AppId"); }
//#else
// set { this.SetContainerProperty(ref _appId, value); }
//#endif
// }
public string AppSecret { get; set; }
// {
// get { return _appSecret; }
//#if NET35 || NET40
// set { this.SetContainerProperty(ref _appSecret, value, "AppSecret"); }
//#else
// set { this.SetContainerProperty(ref _appSecret, value); }
//#endif
// }

public JsApiTicketResult JsApiTicketResult { get; set; }
// {
// get { return _jsApiTicketResult; }
//#if NET35 || NET40
// set { this.SetContainerProperty(ref _jsApiTicketResult, value, "JsApiTicketResult"); }
//#else
// set { this.SetContainerProperty(ref _jsApiTicketResult, value); }
//#endif
// }

public DateTimeOffset JsApiTicketExpireTime { get; set; }
// {
// get { return _jsApiTicketExpireTime; }
//#if NET35 || NET40
// set { this.SetContainerProperty(ref _jsApiTicketExpireTime, value, "JsApiTicketExpireTime"); }
//#else
// set { this.SetContainerProperty(ref _jsApiTicketExpireTime, value); }
//#endif
// }

/// <summary>
/// 只针对这个AppId的锁
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,69 +70,9 @@ namespace Senparc.Weixin.MP.Containers
public class WxCardApiTicketBag : BaseContainerBag, IBaseContainerBag_AppId
{
public string AppId { get; set; }
// {
// get
// {
// return _appId;
// }
//#if NET35 || NET40
// set { this.SetContainerProperty(ref _appId, value, "AppId"); }
//#else
// set
// {
// this.SetContainerProperty(ref _appId, value);
// }
//#endif
// }

public string AppSecret { get; set; }
// {
// get
// {
// return _appSecret;
// }
//#if NET35 || NET40
// set { this.SetContainerProperty(ref _appSecret, value, "AppSecret"); }
//#else
// set
// {
// this.SetContainerProperty(ref _appSecret, value);
// }
//#endif
// }

public JsApiTicketResult WxCardApiTicketResult { get; set; }
// {
// get
// {
// return _WxCardApiTicketResult;
// }
//#if NET35 || NET40
// set { this.SetContainerProperty(ref _WxCardApiTicketResult, value, "WxCardApiTicketResult"); }
//#else
// set
// {
// this.SetContainerProperty(ref _WxCardApiTicketResult, value);
// }
//#endif
// }

public DateTimeOffset WxCardApiTicketExpireTime { get; set; }
// {
// get
// {
// return _WxCardApiTicketExpireTime;
// }
//#if NET35 || NET40
// set { this.SetContainerProperty(ref _WxCardApiTicketExpireTime, value, "WxCardApiExpireTime"); }
//#else
// set
// {
// this.SetContainerProperty(ref _WxCardApiTicketExpireTime, value);
// }
//#endif
// }

/// <summary>
/// 只针对这个AppId的锁
/// </summary>
Expand Down
Loading