From b6fd17722df0fda01e2b0c4f714b0a92d36bd62d Mon Sep 17 00:00:00 2001 From: Sanchime Date: Sun, 6 Nov 2022 23:05:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=BA=E6=A8=A1=E6=9D=BF?= =?UTF-8?q?=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dipper.Alioth/Web/ServiceConvention.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dipper.Alioth/Web/ServiceConvention.cs b/Dipper.Alioth/Web/ServiceConvention.cs index 96d2076..bfe5871 100644 --- a/Dipper.Alioth/Web/ServiceConvention.cs +++ b/Dipper.Alioth/Web/ServiceConvention.cs @@ -99,10 +99,10 @@ public class ServiceConvention : IApplicationModelConvention { foreach (var item in action.Attributes) { - if (item is RouteAttribute attribute) + if (item is Microsoft.AspNetCore.Mvc.RouteAttribute attribute) { // attribute.Path - return attribute.Name; + return attribute.Template; } } }