From d17c99740d94db93e74ed0514c27e43db96b3692 Mon Sep 17 00:00:00 2001 From: ljl Date: Thu, 25 Jan 2024 13:05:14 +0800 Subject: [PATCH] yh --- app/Controller/Payment/AccountController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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('账号或密码错误');