feat: the format of key is now constant with that of OpenAI

This commit is contained in:
JustSong committed 2023-06-03 10:53:25 +08:00
1 parent b28b49bb79
commit 4172e9b682
4 files changed
+29 -4

No files matched your search

+1 -1
View File
@@ -119,7 +119,7 @@ func AddToken(c *gin.Context) {
cleanToken := model.Token{
UserId: c.GetInt("id"),
Name: token.Name,
Key: common.GetUUID(),
Key: common.GenerateKey(),
CreatedTime: common.GetTimestamp(),
AccessedTime: common.GetTimestamp(),
ExpiredTime: token.ExpiredTime,