From 7d894fa750c6248624cdb7f52e7bc8508111ea73 Mon Sep 17 00:00:00 2001 From: JianWeie Date: Thu, 24 Mar 2022 11:28:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=87=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E4=BA=A4=E6=98=93=E7=BB=84=E4=BB=B6=E4=BA=8B=E4=BB=B6=E5=9B=9E?= =?UTF-8?q?=E8=B0=83=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/WeChatOAuth/WxOpenController.cs | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/CoreCms.Net.Web.WebApi/Controllers/WeChatOAuth/WxOpenController.cs b/CoreCms.Net.Web.WebApi/Controllers/WeChatOAuth/WxOpenController.cs index 2a22c896..6d2f8a33 100644 --- a/CoreCms.Net.Web.WebApi/Controllers/WeChatOAuth/WxOpenController.cs +++ b/CoreCms.Net.Web.WebApi/Controllers/WeChatOAuth/WxOpenController.cs @@ -202,21 +202,18 @@ namespace CoreCms.Net.Web.WebApi.Controllers.WeChatOAuth case EventType.Localtion: break; - - case EventType.OpenProductSpuAudit: - var openProductSpuAuditEvent = client.DeserializeEventFromXml(msgXml); callBack = await _mediator.Send(new OpenProductSPUAuditEventCommand() { EventObj = openProductSpuAuditEvent }); - break; case EventType.OpenProductCategoryAudit: - var openProductCategoryAuditEvent = client.DeserializeEventFromXml(msgXml); callBack = await _mediator.Send(new OpenProductCategoryAuditEventCommand() { EventObj = openProductCategoryAuditEvent }); - break; - + case EventType.OpenProductBrandAudit: + var openProductBrandAuditEvent = client.DeserializeEventFromXml(msgXml); + callBack = await _mediator.Send(new OpenProductBrandAuditEventCommand() { EventObj = openProductBrandAuditEvent }); + break; default: NLogUtil.WriteFileLog(LogLevel.Info, LogType.WxPost, "接收服务器推送(处理xml内容/Event无匹配)", JsonConvert.SerializeObject(sourceXml)); break;