扫码填报日报修改
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>
|
||||
|
||||
Reference in New Issue
Block a user