Skip to content

Commit

Permalink
fix: 用户搜索的字符串不需要再次格式化处理
Browse files Browse the repository at this point in the history
  • Loading branch information
DokiDoki1103 committed Dec 6, 2024
1 parent bfa9995 commit 184ad4f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions internal/controller/tiku.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"github.com/itihey/tikuAdapter/internal/entity"
"github.com/itihey/tikuAdapter/internal/middleware"
"github.com/itihey/tikuAdapter/pkg/logger"
"github.com/itihey/tikuAdapter/pkg/util"
"net/http"
"strconv"
"time"
Expand Down Expand Up @@ -45,7 +44,6 @@ func GetQuestions(c *gin.Context) {
})
return
}
searchValue.Question = util.FormatString(searchValue.Question)
tx := dao.Tiku.Order(dao.Tiku.ID.Desc())
if searchValue.Question != "" {
tx.Where(dao.Tiku.Question.Like("%" + searchValue.Question + "%"))
Expand Down

0 comments on commit 184ad4f

Please sign in to comment.