From ecc0c97c660f2302c7eb236a62a82a35b6c9afaf Mon Sep 17 00:00:00 2001 From: comm5v8 Date: Sun, 19 May 2019 23:43:54 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A1=E5=88=92=E6=B5=8B=E8=AF=95=E4=BC=AA?= =?UTF-8?q?=E9=9D=99=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- COMCMS.Web/Controllers/HomeController.cs | 9 +++++++++ COMCMS.Web/Controllers/wxpaymentController.cs | 3 ++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/COMCMS.Web/Controllers/HomeController.cs b/COMCMS.Web/Controllers/HomeController.cs index 6a236db..a028160 100644 --- a/COMCMS.Web/Controllers/HomeController.cs +++ b/COMCMS.Web/Controllers/HomeController.cs @@ -46,5 +46,14 @@ namespace COMCMS.Web.Controllers return View(new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier }); } + #region 测试 + [Route("{path:regex([[a-zA-Z-/]])}/index.html")] + public IActionResult Test(string path="") + { + string tel = "13332835377"; + return Content(tel.Substring(tel.Length - 5)+";path:"+path); + } + #endregion + } } diff --git a/COMCMS.Web/Controllers/wxpaymentController.cs b/COMCMS.Web/Controllers/wxpaymentController.cs index c6de522..59d23fb 100644 --- a/COMCMS.Web/Controllers/wxpaymentController.cs +++ b/COMCMS.Web/Controllers/wxpaymentController.cs @@ -14,10 +14,11 @@ using Senparc.Weixin.TenPay.V3; using System.Collections; using Microsoft.Extensions.Configuration; using Newtonsoft.Json; +using COMCMS.Web.Common; namespace COMCMS.Web.Controllers { - public class wxpaymentController : HomeController + public class wxpaymentController : HomeBaseController { #region 微信支付异步通知 ///