This commit is contained in:
李德银 2024-04-04 23:47:25 +08:00 committed by GitHub
commit ba656e0426
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -114,7 +114,7 @@ func AddToken(c *gin.Context) {
})
return
}
if len(token.Name) > 30 {
if len(token.Name) > 100 {
c.JSON(http.StatusOK, gin.H{
"success": false,
"message": "令牌名称过长",
@ -178,7 +178,7 @@ func UpdateToken(c *gin.Context) {
})
return
}
if len(token.Name) > 30 {
if len(token.Name) > 100 {
c.JSON(http.StatusOK, gin.H{
"success": false,
"message": "令牌名称过长",