mirror of
https://github.com/linux-do/new-api.git
synced 2025-11-10 08:03:41 +08:00
修改错误提示
This commit is contained in:
@@ -9,7 +9,7 @@ func abortWithMessage(c *gin.Context, statusCode int, message string) {
|
||||
c.JSON(statusCode, gin.H{
|
||||
"error": gin.H{
|
||||
"message": common.MessageWithRequestId(message, c.GetString(common.RequestIdKey)),
|
||||
"type": "one_api_error",
|
||||
"type": "new_api_error",
|
||||
},
|
||||
})
|
||||
c.Abort()
|
||||
|
||||
Reference in New Issue
Block a user