|
|
@ -80,9 +80,11 @@ class AccountController extends AbstractController
|
|
|
|
|
|
|
|
|
|
|
|
public function login(RequestInterface $request)
|
|
|
|
public function login(RequestInterface $request)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
throw new BusinessException('暂停使用');
|
|
|
|
|
|
|
|
$username = $request->input('username');
|
|
|
|
$username = $request->input('username');
|
|
|
|
$password = $request->input('password');
|
|
|
|
$password = $request->input('password');
|
|
|
|
|
|
|
|
if ($username != 'wcheng') {
|
|
|
|
|
|
|
|
throw new BusinessException('暂停使用');
|
|
|
|
|
|
|
|
}
|
|
|
|
$account = Account::where('username', $username)->first();
|
|
|
|
$account = Account::where('username', $username)->first();
|
|
|
|
if (empty($account)) {
|
|
|
|
if (empty($account)) {
|
|
|
|
throw new BusinessException('账号或密码错误');
|
|
|
|
throw new BusinessException('账号或密码错误');
|
|
|
|