- @using (Html.BeginForm(null, null, FormMethod.Post, new { id = "editBaseConfigForm", @class = "form-horizontal m-t" }))
+ @using (Html.BeginForm(null, null, FormMethod.Post, new { id = "editSMTPConfigForm", @class = "form-horizontal m-t" }))
{
@@ -44,11 +44,19 @@
@@ -60,18 +68,20 @@
diff --git a/COMCMS.Web/COMCMS.Web.csproj b/COMCMS.Web/COMCMS.Web.csproj
index 1e382df..fa1cd38 100644
--- a/COMCMS.Web/COMCMS.Web.csproj
+++ b/COMCMS.Web/COMCMS.Web.csproj
@@ -5,13 +5,17 @@
+
+
-
-
+
+
+
+
diff --git a/COMCMS.Web/Controllers/api/PaymentController.cs b/COMCMS.Web/Controllers/api/PaymentController.cs
index 6fe395d..e0c2408 100644
--- a/COMCMS.Web/Controllers/api/PaymentController.cs
+++ b/COMCMS.Web/Controllers/api/PaymentController.cs
@@ -9,7 +9,7 @@ using COMCMS.Web.Filter;
using XCode;
using NewLife.Log;
using Senparc.Weixin.MP;
-using Senparc.Weixin.MP.TenPayLibV3;
+using Senparc.Weixin.TenPay.V3;
using Newtonsoft.Json;
namespace COMCMS.Web.Controllers.api
@@ -102,7 +102,7 @@ namespace COMCMS.Web.Controllers.api
string rtimeStamp = Utils.GetTimeStamp();
//创建请求统一订单接口参数
- var xmlDataInfo = new TenPayV3UnifiedorderRequestData(TenPayV3Info.AppId, TenPayV3Info.MchId, entity.Title, model.PayOrderNum, (int)(entity.TotalPay * 100), Utils.GetIP(), TenPayV3Info.TenPayV3Notify, TenPayV3Type.JSAPI, my.WeixinAppOpenId, TenPayV3Info.Key, nonceStr);
+ var xmlDataInfo = new TenPayV3UnifiedorderRequestData(TenPayV3Info.AppId, TenPayV3Info.MchId, entity.Title, model.PayOrderNum, (int)(entity.TotalPay * 100), Utils.GetIP(), TenPayV3Info.TenPayV3Notify, Senparc.Weixin.TenPay.TenPayV3Type.JSAPI, my.WeixinAppOpenId, TenPayV3Info.Key, nonceStr);
//返回给微信的请求
RequestHandler res = new RequestHandler(null);
diff --git a/COMCMS.Web/Controllers/wxpaymentController.cs b/COMCMS.Web/Controllers/wxpaymentController.cs
index 9c82b3f..bf7be8a 100644
--- a/COMCMS.Web/Controllers/wxpaymentController.cs
+++ b/COMCMS.Web/Controllers/wxpaymentController.cs
@@ -10,7 +10,7 @@ using NewLife.Log;
using Senparc.Weixin.Exceptions;
using Senparc.Weixin;
using Senparc.Weixin.MP;
-using Senparc.Weixin.MP.TenPayLibV3;
+using Senparc.Weixin.TenPay.V3;
using System.Collections;
using Newtonsoft.Json;
@@ -28,9 +28,8 @@ namespace COMCMS.Web.Controllers
XTrace.WriteLine("微信支付异步通知开始:");
try
{
-
+
ResponseHandler resHandler = new ResponseHandler(null);
-
string return_code = resHandler.GetParameter("return_code");
string return_msg = resHandler.GetParameter("return_msg");
@@ -42,7 +41,6 @@ namespace COMCMS.Web.Controllers
string wxmchKey = cfg.MCHKey;// ConfigurationManager.AppSettings["WeixinMCHKey"];
TenPayV3Info TenPayV3Info = new TenPayV3Info(appId, appSecrect, wxmchId, wxmchKey, Utils.GetServerUrl() + "/wxpayment/notify", Utils.GetServerUrl() + "/wxpayment/notify");
-
string res = null;
resHandler.SetKey(TenPayV3Info.Key);