1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- <?php
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- namespace app\common\basics;
-
-
- use think\App;
- use think\exception\HttpResponseException;
-
-
- abstract class IndexBase
- {
-
-
- protected $request;
-
-
-
- protected $app;
-
-
-
- public function __construct(App $app)
- {
- $this->app = $app;
- $this->request = $this->app->request;
- }
-
-
-
-
- public function redirect(...$args)
- {
- throw new HttpResponseException(redirect(...$args));
- }
-
-
-
- }
|