Skip to content

Commit

Permalink
feat: 增加标签搜索
Browse files Browse the repository at this point in the history
  • Loading branch information
DokiDoki1103 committed Jun 22, 2024
1 parent 99f701f commit e4ba8e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/middleware/collect_answer.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func FillHash(t *entity.Tiku) {
questionText := util.GetQuestionText(t.Question)
t.QuestionText = questionText
t.QuestionHash = strutil.ShortMd5(questionText)
t.Hash = strutil.Md5(t.QuestionHash + t.Options + string(t.Type) + t.Extra)
t.Hash = strutil.Md5(t.QuestionHash + t.Options + string(t.Type))

if t.Answer == "" {
t.Answer = "[]"
Expand Down

0 comments on commit e4ba8e1

Please sign in to comment.