mirror of https://gitee.com/answerdev/answer.git
update short id
This commit is contained in:
parent
4d146807ff
commit
d7511a6697
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue