Commit 5cc8f347 authored by gdlcf88's avatar gdlcf88

Close #30: Check configuration "App:SelfUrl" is not null

parent b28f7a75
<Project>
<PropertyGroup>
<LangVersion>latest</LangVersion>
<Version>0.1.0</Version>
<Version>0.1.1</Version>
<NoWarn>$(NoWarn);CS1591</NoWarn>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Authors>EasyAbp Team</Authors>
......
<Project>
<PropertyGroup>
<LangVersion>latest</LangVersion>
<Version>0.1.0</Version>
<Version>0.1.1</Version>
<NoWarn>$(NoWarn);CS1591</NoWarn>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Authors>EasyAbp Team</Authors>
......
<Project>
<PropertyGroup>
<LangVersion>latest</LangVersion>
<Version>0.1.0</Version>
<Version>0.1.1</Version>
<NoWarn>$(NoWarn);CS1591</NoWarn>
</PropertyGroup>
......
......@@ -24,9 +24,9 @@ namespace EasyAbp.EShop.Payments.WeChatPay.Settings
new SettingDefinition(WeChatPaySettings.WeChatPayPaymentMethod.ApiKey),
new SettingDefinition(WeChatPaySettings.WeChatPayPaymentMethod.IsSandBox, "false"),
new SettingDefinition(WeChatPaySettings.WeChatPayPaymentMethod.NotifyUrl,
_configuration["App:SelfUrl"].EnsureEndsWith('/') + "WeChatPay/Notify"),
_configuration["App:SelfUrl"]?.EnsureEndsWith('/') + "WeChatPay/Notify"),
new SettingDefinition(WeChatPaySettings.WeChatPayPaymentMethod.RefundNotifyUrl,
_configuration["App:SelfUrl"].EnsureEndsWith('/') + "WeChatPay/RefundNotify"),
_configuration["App:SelfUrl"]?.EnsureEndsWith('/') + "WeChatPay/RefundNotify"),
new SettingDefinition(WeChatPaySettings.WeChatPayPaymentMethod.CertificatePath),
new SettingDefinition(WeChatPaySettings.WeChatPayPaymentMethod.CertificateSecret)
);
......
<Project>
<PropertyGroup>
<LangVersion>latest</LangVersion>
<Version>0.1.0</Version>
<Version>0.1.1</Version>
<NoWarn>$(NoWarn);CS1591</NoWarn>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Authors>EasyAbp Team</Authors>
......
<Project>
<PropertyGroup>
<LangVersion>latest</LangVersion>
<Version>0.1.0</Version>
<Version>0.1.1</Version>
<NoWarn>$(NoWarn);CS1591</NoWarn>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Authors>EasyAbp Team</Authors>
......
<Project>
<PropertyGroup>
<LangVersion>latest</LangVersion>
<Version>0.1.0</Version>
<Version>0.1.1</Version>
<NoWarn>$(NoWarn);CS1591</NoWarn>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Authors>EasyAbp Team</Authors>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment