扫码填报日报修改

This commit is contained in:
2024-12-02 17:51:43 +08:00
parent 871b95771a
commit f094390835
6 changed files with 42 additions and 13 deletions
+2
View File
@@ -8,6 +8,7 @@ using System.Web.Http;
using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Routing;
using WebAPI.Log;
namespace WebAPI
{
@@ -32,6 +33,7 @@ namespace WebAPI
// 使api返回为json
GlobalConfiguration.Configuration.Formatters.XmlFormatter.SupportedMediaTypes.Clear();
GlobalConfiguration.Configuration.MessageHandlers.Add(new CustomMessageHandler());
}
/// <summary>
+1
View File
@@ -246,6 +246,7 @@
<Compile Include="Global.asax.cs">
<DependentUpon>Global.asax</DependentUpon>
</Compile>
<Compile Include="Log\CustomMessageHandler.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>