We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b3aa20 commit 4d94838Copy full SHA for 4d94838
1 file changed
src/BearerToken.php
@@ -3,7 +3,7 @@
3
namespace xiaodi;
4
5
use think\App;
6
-use xiaodi\Exception\Exception;
+use xiaodi\Exception\JwtException;
7
8
class BearerToken
9
{
@@ -19,7 +19,7 @@ public function getToken()
19
$authorization = $this->request->header('authorization');
20
21
if (strpos($authorization, 'Bearer ') !== 0) {
22
- throw new Exception('获取Token失败.');
+ throw new JwtException('获取Token失败.');
23
}
24
25
return substr($authorization, 7);
0 commit comments