更新驱动
This commit is contained in:
@@ -16,12 +16,10 @@
|
|||||||
<PackageReference Include="ZKWeb.System.Drawing" Version="4.0.1" />
|
<PackageReference Include="ZKWeb.System.Drawing" Version="4.0.1" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
|
||||||
</ItemGroup>
|
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\COMCMS.Common\COMCMS.Common.csproj" />
|
<ProjectReference Include="..\COMCMS.Common\COMCMS.Common.csproj" />
|
||||||
<ProjectReference Include="..\COMCMS.Core\COMCMS.Core.csproj" />
|
<ProjectReference Include="..\COMCMS.Core\COMCMS.Core.csproj" />
|
||||||
|
<ProjectReference Include="..\Lib.Core\Lib.Core.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ namespace COMCMS.Web.Common
|
|||||||
{
|
{
|
||||||
context.HttpContext.Request.ContentType = "application/json";
|
context.HttpContext.Request.ContentType = "application/json";
|
||||||
context.HttpContext.Request.Headers["Accept"] = "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);
|
context.Result = new JsonResult(model);
|
||||||
base.OnException(context);
|
base.OnException(context);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,8 +15,8 @@ namespace COMCMS.Web.ExceptionHandler
|
|||||||
{
|
{
|
||||||
string message = exception.Message;
|
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());
|
await context.Response.WriteAsync(error.ToJson());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ namespace COMCMS.Web.Filter
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private ReJSON ValiSignature(HttpContext context)
|
private ReJson ValiSignature(HttpContext context)
|
||||||
{
|
{
|
||||||
var Request = context.Request;
|
var Request = context.Request;
|
||||||
|
|
||||||
@@ -77,7 +77,7 @@ namespace COMCMS.Web.Filter
|
|||||||
if (!MySign.CheckSign(pars, signature))
|
if (!MySign.CheckSign(pars, signature))
|
||||||
{
|
{
|
||||||
|
|
||||||
return new ReJSON(40004, "signature 错误!");
|
return new ReJson(40004, "signature 错误!");
|
||||||
}
|
}
|
||||||
//判断是否超时
|
//判断是否超时
|
||||||
string timeStamp = pars["timeStamp"];
|
string timeStamp = pars["timeStamp"];
|
||||||
@@ -85,7 +85,7 @@ namespace COMCMS.Web.Filter
|
|||||||
DateTime postTime = Utils.StampToDateTime(timeStamp);
|
DateTime postTime = Utils.StampToDateTime(timeStamp);
|
||||||
if (postTime < DateTime.Now.AddSeconds(-120))//30秒有效期
|
if (postTime < DateTime.Now.AddSeconds(-120))//30秒有效期
|
||||||
{
|
{
|
||||||
return new ReJSON(40004, "signature 错误!", 1);
|
return new ReJson(40004, "signature 错误!", 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
+7
-1
@@ -11,7 +11,9 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "COMCMS.Common", "COMCMS.Com
|
|||||||
EndProject
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "XCoder(代码生成器)", "XCoder\XCoder(代码生成器).csproj", "{71539325-194B-4D56-8D88-562B33004406}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "XCoder(代码生成器)", "XCoder\XCoder(代码生成器).csproj", "{71539325-194B-4D56-8D88-562B33004406}"
|
||||||
EndProject
|
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
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
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}.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.ActiveCfg = Release|Any CPU
|
||||||
{ED1581D0-7E94-4ADC-B2B4-0A523EA3B512}.Release|Any CPU.Build.0 = 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
|
EndGlobalSection
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
HideSolutionNode = FALSE
|
HideSolutionNode = FALSE
|
||||||
|
|||||||
Reference in New Issue
Block a user