diff --git a/controller/token.go b/controller/token.go index 7670cf46..ff0eb89f 100644 --- a/controller/token.go +++ b/controller/token.go @@ -171,7 +171,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": "令牌名称过长",