Commit 9310bde4 by Calcium-Ion Committed by GitHub

Merge pull request #2928 from RedwindA/fix/token-Search

fix(token-search): use TrimPrefix for sk- token normalization
parents b7ca7bf3 4aa14c7e
......@@ -113,7 +113,7 @@ func SearchUserTokens(userId int, keyword string, token string, offset int, limi
}
if token != "" {
token = strings.Trim(token, "sk-")
token = strings.TrimPrefix(token, "sk-")
}
// 超量用户(令牌数超过上限)只允许精确搜索,禁止模糊搜索
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment