services.AddHttpClient(); //微信公众号 services.AddWeChat(options=> { Configuration.GetSection("Tencent:WeChat").Bind(options); }); app.UseWeChat();