12345678910111213141516171819202122232425262728293031323334 |
- <?php
- /**
- * Created by PhpStorm
- * User:林志杰
- * Email:[email protected]
- * Motto:纵有疾风起,人生不言弃!
- * Time:2020/2/8 20:06
- */
- namespace app\api\controller;
- use app\BaseController;
- use think\exception\HttpResponseException;
- /**
- * API模块下的公共控制器
- * 如果不需要登录的场景继承ApiBase这个控制器
- * 如果需要登录的场景继承AuthBase这个控制器
- * Class ApiBase
- * @package app\api\controller
- */
- class ApiBase extends BaseController
- {
- public function initialize()
- {
- parent::initialize(); // TODO: Change the autogenerated stub
- }
- public function show(...$args)
- {
- throw new HttpResponseException(show(...$args));
- }
- }
|