123456789101112131415161718192021222324252627282930 |
- <?php
- namespace app\api\controller;
- use app\common\exception\BaseException;
- use think\facade\Request;
- use app\api\service\Comments as CommentsService;
- class Comments extends Base {
-
- public function index(){
- try{
- return $this->returnAjax("ok",1,CommentsService::getList(Request::param()));
- }catch (BaseException $ex){
- return $this->returnAjax($ex->getMessage(),$ex->getCode(),$ex->getRaw());
- }
- }
- }
|