12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <?php
- namespace app\api\controller;
- use app\common\controller\Api;
- use think\db\exception\DataNotFoundException;
- use think\db\exception\ModelNotFoundException;
- use think\Exception;
- use think\exception\DbException;
- class Story extends Api
- {
-
-
-
-
-
- protected $noNeedLogin = ['*'];
-
- protected $noNeedRight = ['*'];
-
- public function list()
- {
- $where = $this->request->param();
- $where['lang'] = $this->lang;
- $this->success('ok', \app\admin\model\story\Story::getValidArticleList($where));
- }
-
- public function detail($id)
- {
- $this->success('ok', \app\admin\model\story\Story::getValidArticle($id, $this->lang, true));
- }
- }
|