mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-11-16 21:23:44 +08:00
🐛 fix: tg apikey command missing sk prefix (#76)
This commit is contained in:
@@ -63,9 +63,10 @@ func getApikeyList(userId, page int) (message string, pageParams *paginationPara
|
||||
message = "点击令牌可复制:\n"
|
||||
|
||||
for _, token := range *list.Data {
|
||||
message += fmt.Sprintf("*%s* : `%s`\n", escapeText(token.Name, "MarkdownV2"), token.Key)
|
||||
key := "sk-" + token.Key
|
||||
message += fmt.Sprintf("*%s* : `%s`\n", escapeText(token.Name, "MarkdownV2"), key)
|
||||
if chatUrlTmp != "" {
|
||||
message += strings.ReplaceAll(chatUrlTmp, `setToken`, token.Key)
|
||||
message += strings.ReplaceAll(chatUrlTmp, `setToken`, key)
|
||||
}
|
||||
message += "\n"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user