Commit 4aa14c7e by RedwindA

fix(token-search): use TrimPrefix for sk- token normalization

parent 29d48e26
......@@ -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