File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,14 +19,14 @@ public function __construct(App $app)
1919 $ this ->app = $ app ;
2020 }
2121
22- public function handle ($ request , \Closure $ next )
22+ public function handle ($ request , \Closure $ next, $ store = null )
2323 {
2424 // 暂时修复 6.0.3 options 问题
2525 if ($ request ->isOptions ()) {
2626 return $ next ($ request );
2727 }
2828
29- if (true === $ this ->app ->get ('jwt ' )->verify ()) {
29+ if (true === $ this ->app ->get ('jwt ' )->store ( $ store )-> verify ()) {
3030
3131 $ user = $ this ->app ->get ('jwt.user ' );
3232
Original file line number Diff line number Diff line change @@ -33,9 +33,11 @@ public function __construct(App $app)
3333 $ this ->init ();
3434 }
3535
36- public function store (string $ store ): self
36+ public function store (string $ store = null ): self
3737 {
38- $ this ->store = $ store ;
38+ if ($ store ) {
39+ $ this ->store = $ store ;
40+ }
3941
4042 return $ this ;
4143 }
You can’t perform that action at this time.
0 commit comments