Skip to content

Commit

Permalink
支付回调接口添加配置参数
Browse files Browse the repository at this point in the history
  • Loading branch information
UtilCore committed Aug 21, 2020
1 parent 87e1537 commit f73da00
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build/version.props
Expand Up @@ -2,7 +2,7 @@
<PropertyGroup>
<VersionMajor>1</VersionMajor>
<VersionMinor>9</VersionMinor>
<VersionPatch>4.5</VersionPatch>
<VersionPatch>4.7</VersionPatch>
<VersionQuality></VersionQuality>
<VersionPrefix>$(VersionMajor).$(VersionMinor).$(VersionPatch)</VersionPrefix>
<VersionSuffix></VersionSuffix>
Expand Down
Expand Up @@ -25,7 +25,7 @@ public class AlipayParameterBuilder {
/// </summary>
public AlipayContentBuilder Content { get; }

/// <summary>
/// <summary>z
/// 初始化支付宝参数生成器
/// </summary>
/// <param name="config">配置</param>
Expand Down Expand Up @@ -127,7 +127,7 @@ public class AlipayParameterBuilder {
/// 获取回调通知地址
/// </summary>
private string GetNotifyUrl( string notifyUrl ) {
if( notifyUrl.IsEmpty() )
if ( notifyUrl.IsEmpty() )
return Config.NotifyUrl;
return notifyUrl;
}
Expand Down Expand Up @@ -163,7 +163,7 @@ public class AlipayParameterBuilder {
/// </summary>
private UrlParameterBuilder GetSignBuilder( bool isConvertToSingleQuotes = false ) {
var builder = new UrlParameterBuilder( _builder );
if( Content.IsEmpty == false )
if ( Content.IsEmpty == false )
builder.Add( AlipayConst.BizContent, Content.ToJson( isConvertToSingleQuotes ) );
builder.Add( AlipayConst.Sign, GetSign( builder ) );
return builder;
Expand Down
Expand Up @@ -127,7 +127,7 @@ public abstract class AlipayNotifyServiceBase {
/// 验证签名
/// </summary>
private async Task<bool> VerifySign() {
var config = await _configProvider.GetConfigAsync();
var config = await _configProvider.GetConfigAsync( _builder );
var signManager = new SignManager( new SignKey( config.PrivateKey, config.PublicKey ), CreateVerifyBuilder() );
return signManager.Verify( Sign );
}
Expand Down
2 changes: 1 addition & 1 deletion src/Util/Parameters/UrlParameterBuilder.cs
Expand Up @@ -8,7 +8,7 @@ namespace Util.Parameters {
/// <summary>
/// Url参数生成器
/// </summary>
public class UrlParameterBuilder {
public class UrlParameterBuilder : IParameterManager {
/// <summary>
/// 参数生成器
/// </summary>
Expand Down

0 comments on commit f73da00

Please sign in to comment.