Skip to content

Commit

Permalink
Merge pull request #3041 from JeffreySu/Developer
Browse files Browse the repository at this point in the history
Developer
  • Loading branch information
JeffreySu authored Jul 12, 2024
2 parents 8d8c452 + 3969f13 commit 070a6a5
Show file tree
Hide file tree
Showing 20 changed files with 336 additions and 1,031 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@
//如果不设置TenPayV3_WxOpenTenpayNotify,默认在 TenPayV3_TenpayNotify 的值最后加上 "WxOpen"
"TenPayV3_WxOpenTenpayNotify": "#{TenPayV3_WxOpenTenpayNotify}#", //http://YourDomainName/TenpayV3/PayNotifyUrlWxOpen

"EncryptionType": "#{EncryptionType}#", // 加密类型:RSA / SM

//开放平台
"Component_Appid": "#{Component_Appid}#",
"Component_Secret": "#{Component_Secret}#",
Expand Down

This file was deleted.

Large diffs are not rendered by default.

This file was deleted.

3 changes: 1 addition & 2 deletions Samples/MP/Senparc.Weixin.Sample.MP.Simple/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
app.UseMessageHandlerForMp("/WeixinAsync", CustomMessageHandler.GenerateMessageHandler, options =>
{
//获取默认微信配置
var weixinSetting = Senparc.Weixin.Config.SenparcWeixinSetting;
var weixinSetting = Senparc.Weixin.Config.SenparcWeixinSetting.Items["OpenVip"];

//[必须] 设置微信配置
options.AccountSettingFunc = context => weixinSetting;
Expand All @@ -56,7 +56,6 @@
//演示获取已关注用户的 OpenId(分批获取的第一批)

var weixinSetting = Senparc.Weixin.Config.SenparcWeixinSetting.MpSetting;
var result = new StringBuilder();
var users = await Senparc.Weixin.MP.AdvancedAPIs.UserApi.GetAsync(weixinSetting.WeixinAppId, null);

Console.WriteLine($"展示前 {users.count} 个 OpenId");
Expand Down
Loading

0 comments on commit 070a6a5

Please sign in to comment.