From 818ffb2ce6af447a0e90cf373b0bfbc8e48ab885 Mon Sep 17 00:00:00 2001 From: JaguarJack Date: Wed, 9 Sep 2020 11:35:01 +0800 Subject: [PATCH] =?UTF-8?q?fixed=EF=BC=9A=E4=BF=AE=E5=A4=8D=E5=BC=82?= =?UTF-8?q?=E5=B8=B8code?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Request.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Request.php b/app/Request.php index 895cc8e..3aad66c 100644 --- a/app/Request.php +++ b/app/Request.php @@ -45,7 +45,7 @@ class Request extends \think\Request if ($e instanceof TokenInvalidException) { throw new FailedException('token 不合法', Code::LOST_LOGIN); } - throw new FailedException('认证失败: '. $e->getMessage(), $e->getMessage()); + throw new FailedException('认证失败: '. $e->getMessage(), $e->getCode()); } return $user;