@ -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') {
}
$account = Account::where('username', $username)->first();
if (empty($account)) {
throw new BusinessException('账号或密码错误');