优化部分错误码

This commit is contained in:
Sun
2024-01-24 13:55:28 +08:00
parent 863cdf0fc1
commit e0dcc49f5b
6 changed files with 10 additions and 12 deletions
+1 -1
View File
@@ -97,7 +97,7 @@ func (a *UserApi) UpdatePasssword(c *gin.Context) {
} else {
if v.Password != cmn.PasswordEncryption(params.OldPassword) {
// 旧密码不正确
apiReturn.Error(c, global.Lang.Get("user.api_old_pass_error"))
apiReturn.ErrorByCode(c, 1007)
return
}
}