diff --git a/COMCMS.Web/COMCMS.Web.csproj b/COMCMS.Web/COMCMS.Web.csproj
index 576ab5f..bcb2c1b 100644
--- a/COMCMS.Web/COMCMS.Web.csproj
+++ b/COMCMS.Web/COMCMS.Web.csproj
@@ -16,12 +16,10 @@
-
-
-
+
diff --git a/COMCMS.Web/Common/WebAPIHandleErrorAttribute.cs b/COMCMS.Web/Common/WebAPIHandleErrorAttribute.cs
index a8890a8..703cecc 100644
--- a/COMCMS.Web/Common/WebAPIHandleErrorAttribute.cs
+++ b/COMCMS.Web/Common/WebAPIHandleErrorAttribute.cs
@@ -16,7 +16,7 @@ namespace COMCMS.Web.Common
{
context.HttpContext.Request.ContentType = "application/json";
context.HttpContext.Request.Headers["Accept"] = "application/json";
- ReJSON model = new ReJSON(5001, "执行错误:" + context.Exception.Message);
+ ReJson model = new ReJson(5001, "执行错误:" + context.Exception.Message);
context.Result = new JsonResult(model);
base.OnException(context);
}
diff --git a/COMCMS.Web/ExceptionHandler/ResultExceptionHandler.cs b/COMCMS.Web/ExceptionHandler/ResultExceptionHandler.cs
index b7d13ed..66ceeff 100644
--- a/COMCMS.Web/ExceptionHandler/ResultExceptionHandler.cs
+++ b/COMCMS.Web/ExceptionHandler/ResultExceptionHandler.cs
@@ -15,8 +15,8 @@ namespace COMCMS.Web.ExceptionHandler
{
string message = exception.Message;
- ReJSON error = new ReJSON(message);
-
+ ReJson error = new ReJson(message);
+ context.Response.ContentType = "text/json";
await context.Response.WriteAsync(error.ToJson());
}
}
diff --git a/COMCMS.Web/Filter/CheckFilter.cs b/COMCMS.Web/Filter/CheckFilter.cs
index 9691e60..064fbcf 100644
--- a/COMCMS.Web/Filter/CheckFilter.cs
+++ b/COMCMS.Web/Filter/CheckFilter.cs
@@ -41,7 +41,7 @@ namespace COMCMS.Web.Filter
}
}
- private ReJSON ValiSignature(HttpContext context)
+ private ReJson ValiSignature(HttpContext context)
{
var Request = context.Request;
@@ -77,7 +77,7 @@ namespace COMCMS.Web.Filter
if (!MySign.CheckSign(pars, signature))
{
- return new ReJSON(40004, "signature 错误!");
+ return new ReJson(40004, "signature 错误!");
}
//判断是否超时
string timeStamp = pars["timeStamp"];
@@ -85,7 +85,7 @@ namespace COMCMS.Web.Filter
DateTime postTime = Utils.StampToDateTime(timeStamp);
if (postTime < DateTime.Now.AddSeconds(-120))//30秒有效期
{
- return new ReJSON(40004, "signature 错误!", 1);
+ return new ReJson(40004, "signature 错误!", 1);
}
return null;
diff --git a/COMCMS_NETCORE.sln b/COMCMS_NETCORE.sln
index da57a05..a09c494 100644
--- a/COMCMS_NETCORE.sln
+++ b/COMCMS_NETCORE.sln
@@ -11,7 +11,9 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "COMCMS.Common", "COMCMS.Com
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "XCoder(代码生成器)", "XCoder\XCoder(代码生成器).csproj", "{71539325-194B-4D56-8D88-562B33004406}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "COMCMS.API", "COMCMS.API\COMCMS.API.csproj", "{ED1581D0-7E94-4ADC-B2B4-0A523EA3B512}"
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "COMCMS.API", "COMCMS.API\COMCMS.API.csproj", "{ED1581D0-7E94-4ADC-B2B4-0A523EA3B512}"
+EndProject
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Lib.Core", "Lib.Core\Lib.Core.csproj", "{D95FC3C1-B035-4A19-A706-71C31DD1E52D}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -39,6 +41,10 @@ Global
{ED1581D0-7E94-4ADC-B2B4-0A523EA3B512}.Debug|Any CPU.Build.0 = Debug|Any CPU
{ED1581D0-7E94-4ADC-B2B4-0A523EA3B512}.Release|Any CPU.ActiveCfg = Release|Any CPU
{ED1581D0-7E94-4ADC-B2B4-0A523EA3B512}.Release|Any CPU.Build.0 = Release|Any CPU
+ {D95FC3C1-B035-4A19-A706-71C31DD1E52D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {D95FC3C1-B035-4A19-A706-71C31DD1E52D}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {D95FC3C1-B035-4A19-A706-71C31DD1E52D}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {D95FC3C1-B035-4A19-A706-71C31DD1E52D}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE