Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
chr233 committed Sep 12, 2023
1 parent a2b0eb4 commit 5b6a2e5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project>
<PropertyGroup>
<Version>2.2.1.5</Version>
<Version>2.2.2.0</Version>
</PropertyGroup>

<PropertyGroup>
Expand Down
9 changes: 5 additions & 4 deletions XinjingdailyBot.Command/AdminCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1542,16 +1542,17 @@ async Task<string> exec()
return "稿件可能已被撤回";
}

post.Status = EPostStatus.Revocation;
post.ModifyAt = DateTime.Now;
await _postService.Updateable(post).UpdateColumns(static x => new { x.Status, x.ModifyAt }).ExecuteCommandAsync();

var chat = post.Status == EPostStatus.Accepted ? _channelService.AcceptChannel : _channelService.SecondChannel;
if (chat == null)
{
return "第二频道未设定";
}

post.Status = EPostStatus.Revocation;
post.ModifyAt = DateTime.Now;
await _postService.Updateable(post).UpdateColumns(static x => new { x.Status, x.ModifyAt }).ExecuteCommandAsync();


if (post.WarnTextID != -1 && post.WarnTextID != 0)
{
try
Expand Down

0 comments on commit 5b6a2e5

Please sign in to comment.