Updata:去除多余代码
This commit is contained in:
parent
cbbb5acbea
commit
8e50e029b1
@ -176,9 +176,6 @@ 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":
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user