message
This commit is contained in:
parent
5f84186a64
commit
95d164da1d
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue