update short id

This commit is contained in:
aichy126 2023-03-17 10:54:47 +08:00
parent 6a1ae9140f
commit c4780fa3e5
1 changed files with 1 additions and 0 deletions

View File

@ -110,6 +110,7 @@ func (ac *AnswerController) Add(ctx *gin.Context) {
if handler.BindAndCheck(ctx, req) {
return
}
req.QuestionID = uid.DeShortID(req.QuestionID)
req.UserID = middleware.GetLoginUserIDFromContext(ctx)
can, err := ac.rankService.CheckOperationPermission(ctx, req.UserID, permission.AnswerAdd, "")