style: return a uniform variable name

This commit is contained in:
Vincent Young 2023-02-25 22:17:13 +08:00
parent a3778c05fb
commit ffdba23b03

View File

@ -194,8 +194,8 @@ func main() {
if res.Get("error.code").String() == "-32600" {
log.Println(res.Get("error").String())
c.JSON(http.StatusNotAcceptable, gin.H{
"code": http.StatusNotAcceptable,
"msg": "Invalid targetLang",
"code": http.StatusNotAcceptable,
"message": "Invalid targetLang",
})
return
}