Files
juipnet/Services/Hncore.Pass.PaymentCenter/Pay/WeiFuTong/WeiFuTongDTOBase.cs
wanyongkang d318014316 初始提交
2020-10-07 20:25:03 +08:00

42 lines
1.1 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Xml.Serialization;
using Hncore.Infrastructure.Common;
using XC.RSAUtil;
namespace Hncore.Pass.PaymentCenter.WeiFuTong
{
[XmlRoot("xml", Namespace = "")]
public class WeiFuTongDTOBase
{
/// <summary>
/// 随机字符串,不长于 32 位
/// </summary>
[XmlElement("nonce_str")]
public string NonceStr { get; set; } = Guid.NewGuid().ToString().Replace("-", "");
/// <summary>
/// 签名类型取值MD5默认MD5
/// </summary>
[XmlElement("sign_type")]
public string SignType { get; set; } = "MD5";
/// <summary>
/// MD5签名结果
/// </summary>
[XmlElement("sign")]
public string Sign { get; set; }
/// <summary>
/// 版本号version默认值是2.0
/// </summary>
[XmlElement("version")]
public string Version { get; set; } = "2.0";
}
}