fix: fix token create

This commit is contained in:
JustSong 2024-04-04 11:18:21 +08:00
parent 8b9fa3d6e4
commit ed70881a58

View File

@ -130,6 +130,7 @@ func AddToken(c *gin.Context) {
ExpiredTime: token.ExpiredTime, ExpiredTime: token.ExpiredTime,
RemainQuota: token.RemainQuota, RemainQuota: token.RemainQuota,
UnlimitedQuota: token.UnlimitedQuota, UnlimitedQuota: token.UnlimitedQuota,
Models: token.Models,
} }
err = cleanToken.Insert() err = cleanToken.Insert()
if err != nil { if err != nil {