Skip to content

Commit

Permalink
perf: 审核通过的日志
Browse files Browse the repository at this point in the history
  • Loading branch information
RockChinQ committed May 2, 2024
1 parent 661ad0f commit 969db99
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions backend/service/post.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,10 @@ func (ps *PostService) PostReview(uin int64, id int, option database.ReviewOptio
return errors.New("审核选项不合法")
}

if comment == "" {
comment = "审核通过"
}

// 记录日志
err = ps.DB.AddPostLog(
&database.PostLogPO{
Expand Down

0 comments on commit 969db99

Please sign in to comment.