This commit is contained in:
jiangyong 2026-07-05 14:19:42 +08:00
parent 5f84186a64
commit 95d164da1d
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ func (e *StaffUser) ChangePassword(req *ChangePasswordReq) error {
}
g := gjson.ParseBytes(body)
if g.Get("code").Int() != 0 {
return errors.New(string(body))
return errors.New(g.Get("message").String())
}
return nil