Skip to content

Commit

Permalink
修改Demo
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffreySu committed Jun 15, 2019
1 parent 4f0fcbe commit c637a11
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<AspNetCoreModuleName>AspNetCoreModule</AspNetCoreModuleName>
<!--<AspNetCoreHostingModel>OutOfProcess</AspNetCoreHostingModel>-->

<Version>3.5.4</Version>
<Version>3.5.5</Version>
<!--<DockerComposeProjectPath>..\docker-compose.dcproj</DockerComposeProjectPath>-->
<MvcRazorCompileOnPublish>false</MvcRazorCompileOnPublish>
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public CustomMessageHandler(Stream inputStream, PostModel postModel, int maxReco
public override void OnExecuting()
{
//测试MessageContext.StorageData
if (CurrentMessageContext.StorageData == null)
if (CurrentMessageContext.StorageData == null || (CurrentMessageContext.StorageData is int))
{
CurrentMessageContext.StorageData = 0;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public CustomWxOpenMessageHandler(Stream inputStream, PostModel postModel, int m
public override void OnExecuting()
{
//测试MessageContext.StorageData
if (CurrentMessageContext.StorageData == null)
if (CurrentMessageContext.StorageData == null || (CurrentMessageContext.StorageData is int))
{
CurrentMessageContext.StorageData = 0;
}
Expand Down

0 comments on commit c637a11

Please sign in to comment.