-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
services.AddSenparcWeixinServices报错null #2755
Comments
实际传入的 certPath 参数是 null 了吗? |
在startup.cs中执行builder.Services.AddSenparcWeixinServices(builder.Configuration); |
我也报错了,因为我是用v3, |
@adaxiong 感谢,我的也是报错空。你这个可以 |
@pipihu 最新版本你再看一下,1月份应该已经都解决了。 |
Senparc.Weixin.Work
版本号:3.15.14.1
在Startup.cs中ConfigureServices里使用services.AddSenparcWeixinServices(Configuration),报错NULL未引用。
原因是Senparc.Weixin.RegisterServices.RegisterServiceExtension.AddCertHttpClient 方法中certPath.StartsWith("
/")行出错,该方法要求必须在appsetting.json中配置TenPayV3_CertPath,如果未配置, tenPayV3Setting.TenPayV3_CertPath的值就是NULL,然后在执行certPath.StartsWith("/")会报错NULL未引用。The text was updated successfully, but these errors were encountered: