From a13b24107016a533a80ce30e88608dcf25811e05 Mon Sep 17 00:00:00 2001 From: denghy Date: Wed, 26 Dec 2018 10:18:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=88=90=E5=8A=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Domains/Company/Http/Controllers/AccountController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Domains/Company/Http/Controllers/AccountController.php b/app/Domains/Company/Http/Controllers/AccountController.php index f93414f1..582f85a6 100644 --- a/app/Domains/Company/Http/Controllers/AccountController.php +++ b/app/Domains/Company/Http/Controllers/AccountController.php @@ -32,7 +32,7 @@ class AccountController extends Controller $newPassword = $this->request->get('new_password'); if ($this->account->password === md5($newPassword . $this->account->salt)) { - return err('密码未修改'); + return res(null, '修改成功'); } $attributes = [ @@ -40,9 +40,9 @@ class AccountController extends Controller 'password' => $newPassword, ]; - $account = $this->companyAccountService->store($attributes); + $this->companyAccountService->store($attributes); - return res($account, '修改成功'); + return res(null, '修改成功'); } /**