更新后台smtp发信配置;更新组件

This commit is contained in:
2018-08-28 23:01:14 +08:00
parent 5e0ab0521c
commit 33831222cd
8 changed files with 143 additions and 22 deletions
@@ -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);
@@ -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);