You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
355 B
24 lines
355 B
<?php |
|
/** |
|
* |
|
* TestMiddleware.php |
|
* User: ChenLong |
|
* DateTime: 2020/3/31 13:59 |
|
*/ |
|
|
|
|
|
namespace app\middleware; |
|
|
|
|
|
use think\Request; |
|
|
|
class TestMiddleware |
|
{ |
|
public function handle(Request $request, \Closure $closure) |
|
{ |
|
|
|
return var_dump(app('http')->getName()); |
|
return json(['code' => 200, 'msg' => '看看亲不行']); |
|
} |
|
} |
|
|
|
|