diff --git a/app/Controller/Payment/AccountController.php b/app/Controller/Payment/AccountController.php index c8d58d2..4725e4a 100644 --- a/app/Controller/Payment/AccountController.php +++ b/app/Controller/Payment/AccountController.php @@ -80,9 +80,11 @@ class AccountController extends AbstractController public function login(RequestInterface $request) { - throw new BusinessException('暂停使用'); $username = $request->input('username'); $password = $request->input('password'); + if ($username != 'wcheng') { + throw new BusinessException('暂停使用'); + } $account = Account::where('username', $username)->first(); if (empty($account)) { throw new BusinessException('账号或密码错误');