Updata:转译报错

This commit is contained in:
jiaji.H 2026-03-11 20:53:42 +08:00
parent f120cfa984
commit cbbb5acbea

View File

@ -176,6 +176,9 @@ func NotLoginError(c *gin.Context, err error) {
} }
func translateErrorMessage(c *gin.Context, message string) string { func translateErrorMessage(c *gin.Context, message string) string {
if message == "It was sent. The verification code is still working" {
return "已经发送过,验证码尚可用"
}
lang := c.GetHeader("Accept-Language") lang := c.GetHeader("Accept-Language")
switch lang { switch lang {
case "zh-CN": case "zh-CN":