扫码填报日报修改
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user