mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-12-28 10:45:56 +08:00
refactor: update UI text and error messages to English for better accessibility
This commit is contained in:
@@ -89,21 +89,21 @@ func AddRedemption(c *gin.Context) {
|
||||
if len(redemption.Name) == 0 || len(redemption.Name) > 20 {
|
||||
c.JSON(http.StatusOK, gin.H{
|
||||
"success": false,
|
||||
"message": "兑换码名称长度必须在1-20之间",
|
||||
"message": "The length of the redemption code name must be between 1-20",
|
||||
})
|
||||
return
|
||||
}
|
||||
if redemption.Count <= 0 {
|
||||
c.JSON(http.StatusOK, gin.H{
|
||||
"success": false,
|
||||
"message": "兑换码个数必须大于0",
|
||||
"message": "The number of redemption codes must be greater than 0",
|
||||
})
|
||||
return
|
||||
}
|
||||
if redemption.Count > 100 {
|
||||
c.JSON(http.StatusOK, gin.H{
|
||||
"success": false,
|
||||
"message": "一次兑换码批量生成的个数不能大于 100",
|
||||
"message": "The number of redemption codes generated in a batch cannot be greater than 100",
|
||||
})
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user