update short id

This commit is contained in:
aichy126 2023-03-14 11:23:26 +08:00
parent 4d146807ff
commit d7511a6697
1 changed files with 5 additions and 0 deletions

View File

@ -167,6 +167,11 @@ func (tc *TemplateController) QuestionInfoeRdirect(ctx *gin.Context, siteInfo *s
id = uid.EnShortID(id)
NeedChangeShortID = true
}
} else {
if isShortID {
NeedChangeShortID = true
id = uid.DeShortID(id)
}
}
objectType, objectTypeerr := obj.GetObjectTypeStrByObjectID(uid.DeShortID(title))