修改成功

This commit is contained in:
邓皓元 2018-12-26 10:18:47 +08:00
parent 76d6be6beb
commit a13b241070

View File

@ -32,7 +32,7 @@ class AccountController extends Controller
$newPassword = $this->request->get('new_password'); $newPassword = $this->request->get('new_password');
if ($this->account->password === md5($newPassword . $this->account->salt)) { if ($this->account->password === md5($newPassword . $this->account->salt)) {
return err('密码未修改'); return res(null, '修改成功');
} }
$attributes = [ $attributes = [
@ -40,9 +40,9 @@ class AccountController extends Controller
'password' => $newPassword, 'password' => $newPassword,
]; ];
$account = $this->companyAccountService->store($attributes); $this->companyAccountService->store($attributes);
return res($account, '修改成功'); return res(null, '修改成功');
} }
/** /**