忽略dll文件git
This commit is contained in:
@@ -1,88 +1,88 @@
|
||||
using Hncore.Infrastructure.Common;
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace Hncore.Pass.PaymentCenter.WxPay.WechatJsPay
|
||||
{
|
||||
/// <summary>
|
||||
/// 微信小程序、公众号支付
|
||||
/// </summary>
|
||||
[XmlRoot("xml", Namespace = "")]
|
||||
public class WxJsPayCreateOrderRequest: WxJsPayDataBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 商户系统内部的订单号 ,5到32个字符、 只能包含字母数字或者下划线,区分大小写,每次下单请求确保在商户系统唯一
|
||||
/// </summary>
|
||||
[XmlElement("out_trade_no")]
|
||||
public string OutTradeNo { get; set; }
|
||||
|
||||
[XmlElement("attach")]
|
||||
public string Attach { get; set; }
|
||||
/// <summary>
|
||||
/// 商品描述
|
||||
/// </summary>
|
||||
[XmlElement("body")]
|
||||
public string Body { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 总金额,以分为单位,不允许包含任何字、符号
|
||||
/// </summary>
|
||||
[XmlElement("total_fee")]
|
||||
public int TotalFee { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 原生JS
|
||||
/// </summary>
|
||||
[XmlElement("trade_type")]
|
||||
public string TradeType { get; set; } = "JSAPI";//NATIVE
|
||||
|
||||
[XmlElement("notify_url")]
|
||||
public string NotifyUrl { get; set; }
|
||||
/// <summary>
|
||||
/// 微信用户关注商家公众号的openid
|
||||
/// </summary>
|
||||
[XmlElement("openid")]
|
||||
public string UserOpenId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 公众账号或小程序ID
|
||||
/// </summary>
|
||||
[XmlElement("appid")]
|
||||
public string AppId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 公众账号或小程序ID
|
||||
/// </summary>
|
||||
[XmlElement("mch_id")]
|
||||
public string MchId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 订单生成的机器 IP
|
||||
/// </summary>
|
||||
[XmlElement("spbill_create_ip")]
|
||||
public string MchCreateIp { get; set; } = NetworkHelper.GetPublicIp();
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 随机字符串
|
||||
/// </summary>
|
||||
[XmlElement("nonce_str")]
|
||||
public string NonceStr { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 绝对过期时间 yyyyMMddHHmmss
|
||||
/// </summary>
|
||||
[XmlElement("time_expire")]
|
||||
public string TimeExpire { get; set; }
|
||||
|
||||
|
||||
public int TenantId { get; set; }
|
||||
|
||||
public int StoreId { get; set; }
|
||||
|
||||
public WxJsPayCreateOrderRequest()
|
||||
{
|
||||
this.NonceStr =this.GenerateNonceStr();
|
||||
}
|
||||
}
|
||||
using Hncore.Infrastructure.Common;
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace Hncore.Pass.PaymentCenter.WxPay.WechatJsPay
|
||||
{
|
||||
/// <summary>
|
||||
/// 微信小程序、公众号支付
|
||||
/// </summary>
|
||||
[XmlRoot("xml", Namespace = "")]
|
||||
public class WxJsPayCreateOrderRequest: WxJsPayDataBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 商户系统内部的订单号 ,5到32个字符、 只能包含字母数字或者下划线,区分大小写,每次下单请求确保在商户系统唯一
|
||||
/// </summary>
|
||||
[XmlElement("out_trade_no")]
|
||||
public string OutTradeNo { get; set; }
|
||||
|
||||
[XmlElement("attach")]
|
||||
public string Attach { get; set; }
|
||||
/// <summary>
|
||||
/// 商品描述
|
||||
/// </summary>
|
||||
[XmlElement("body")]
|
||||
public string Body { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 总金额,以分为单位,不允许包含任何字、符号
|
||||
/// </summary>
|
||||
[XmlElement("total_fee")]
|
||||
public int TotalFee { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 原生JS
|
||||
/// </summary>
|
||||
[XmlElement("trade_type")]
|
||||
public string TradeType { get; set; } = "JSAPI";//NATIVE
|
||||
|
||||
[XmlElement("notify_url")]
|
||||
public string NotifyUrl { get; set; }
|
||||
/// <summary>
|
||||
/// 微信用户关注商家公众号的openid
|
||||
/// </summary>
|
||||
[XmlElement("openid")]
|
||||
public string UserOpenId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 公众账号或小程序ID
|
||||
/// </summary>
|
||||
[XmlElement("appid")]
|
||||
public string AppId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 公众账号或小程序ID
|
||||
/// </summary>
|
||||
[XmlElement("mch_id")]
|
||||
public string MchId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 订单生成的机器 IP
|
||||
/// </summary>
|
||||
[XmlElement("spbill_create_ip")]
|
||||
public string MchCreateIp { get; set; } = NetworkHelper.GetPublicIp();
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 随机字符串
|
||||
/// </summary>
|
||||
[XmlElement("nonce_str")]
|
||||
public string NonceStr { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 绝对过期时间 yyyyMMddHHmmss
|
||||
/// </summary>
|
||||
[XmlElement("time_expire")]
|
||||
public string TimeExpire { get; set; }
|
||||
|
||||
|
||||
public int TenantId { get; set; }
|
||||
|
||||
public int StoreId { get; set; }
|
||||
|
||||
public WxJsPayCreateOrderRequest()
|
||||
{
|
||||
this.NonceStr =this.GenerateNonceStr();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user