diff --git a/GDZZ.Application/GDZZ.Application.xml b/GDZZ.Application/GDZZ.Application.xml
index 4c59f76..cb79e1f 100644
--- a/GDZZ.Application/GDZZ.Application.xml
+++ b/GDZZ.Application/GDZZ.Application.xml
@@ -1453,6 +1453,41 @@
用户ID
+
+
+ 商户账号的appid
+
+
+
+
+ 商户号
+
+
+
+
+ 微信支付平台商家设置的私钥
+
+
+
+
+ 转账金额,单位为分
+
+
+
+
+ 付款备注
+
+
+
+
+ 收款用户的openid
+
+
+
+
+ //用户的真实姓名
+
+
总价格
@@ -1473,6 +1508,16 @@
充值类型
+
+
+ 微信批次单号
+
+
+
+
+ 商家批次单号
+
+
微信支付
@@ -4210,5 +4255,22 @@
+
+
+ JsApiPay 的摘要说明
+
+
+
+
+ V3版本请求接口
+
+ 微信的接口地址
+ post请求的数据,json格式
+ apiclient_key.pem中的内容,不要-----BEGIN PRIVATE KEY----- -----END PRIVATE KEY-----
+ 发起请求的商户(包括直连商户、服务商或渠道商)的商户号 mchid
+ 商户证书号
+
+
+
diff --git a/GDZZ.Application/Service/WXPay/Dto/PayMoney.cs b/GDZZ.Application/Service/WXPay/Dto/PayMoney.cs
new file mode 100644
index 0000000..3809398
--- /dev/null
+++ b/GDZZ.Application/Service/WXPay/Dto/PayMoney.cs
@@ -0,0 +1,48 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace GDZZ.Application.Service.WXPay.Dto
+{
+ public class PayMoney
+ {
+ ///
+ /// 商户账号的appid
+ ///
+ public string mch_appid { get; set; }
+
+ ///
+ /// 商户号
+ ///
+ public string mchid { get; set; }
+
+ ///
+ /// 微信支付平台商家设置的私钥
+ ///
+ public string key { get; set; }
+
+ ///
+ /// 转账金额,单位为分
+ ///
+ public string amount { get; set; }
+
+ ///
+ /// 付款备注
+ ///
+ public string desc { get; set; }
+
+ ///
+ /// 收款用户的openid
+ ///
+ public string openid { get; set; }
+ ///
+ /// //用户的真实姓名
+ ///
+ public string re_user_name { get; set; }
+
+ public string requesturl { get; set; }
+
+ }
+}
diff --git a/GDZZ.Application/Service/WXPay/Dto/WithDrawsToWxDto.cs b/GDZZ.Application/Service/WXPay/Dto/WithDrawsToWxDto.cs
new file mode 100644
index 0000000..ad0aa07
--- /dev/null
+++ b/GDZZ.Application/Service/WXPay/Dto/WithDrawsToWxDto.cs
@@ -0,0 +1,9 @@
+namespace GDZZ.Application.Service.WXPay.Dto
+{
+ public class WithDrawsToWxDto
+ {
+ public int Amount { get; internal set; }
+ public object PartnerTradeNo { get; internal set; }
+ public object OpenId { get; internal set; }
+ }
+}
\ No newline at end of file
diff --git a/GDZZ.Application/Service/WXPay/Dto/WithDrawsV3Back.cs b/GDZZ.Application/Service/WXPay/Dto/WithDrawsV3Back.cs
new file mode 100644
index 0000000..ea398eb
--- /dev/null
+++ b/GDZZ.Application/Service/WXPay/Dto/WithDrawsV3Back.cs
@@ -0,0 +1,23 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace GDZZ.Application.Service.WXPay.Dto
+{
+ public class WithDrawsV3Back
+ {
+ ///
+ /// 微信批次单号
+ ///
+ public string batch_id { get; set; }
+ ///
+ /// 商家批次单号
+ ///
+ public string out_batch_no { get; set; }
+ public string create_time { get; set; }
+ public string code { get; set; }
+ public string message { get; set; }
+ }
+}
\ No newline at end of file
diff --git a/GDZZ.Application/Service/WXPay/JsApiPay.cs b/GDZZ.Application/Service/WXPay/JsApiPay.cs
new file mode 100644
index 0000000..483fbb7
--- /dev/null
+++ b/GDZZ.Application/Service/WXPay/JsApiPay.cs
@@ -0,0 +1,140 @@
+using System;
+using System.Collections.Generic;
+using System.Web;
+
+using System.Runtime.Serialization;
+using System.IO;
+using System.Text;
+using System.Net;
+
+using Furion.Logging;
+using SqlSugar;
+using Enyim.Caching;
+using System.Security.Cryptography;
+///
+///JsApiPay 的摘要说明
+///
+
+public static class JsApiPay
+{
+
+ public static string WithDrawsToWx(string appid, string mchid, string serialNo, string openID, string partnerTradeNo, decimal totalFee)
+ {
+
+ SortedDictionary dic = new SortedDictionary();
+ dic.Add("appid", appid);
+ dic.Add("out_batch_no", partnerTradeNo);
+ dic.Add("batch_name", DateTime.Now.ToString("D") + "提现记录");
+ dic.Add("batch_remark", DateTime.Now.ToString("D") + "提现记录");
+ dic.Add("total_amount", totalFee);
+ dic.Add("total_num", 1);
+
+ List